delete const $q = useQuasar(); .ts
This commit is contained in:
parent
1927870302
commit
60bda24d1d
5 changed files with 17 additions and 78 deletions
|
|
@ -17,7 +17,6 @@ import { getToken, tokenParsed } from "@/plugins/auth";
|
|||
|
||||
export const useSupportStore = defineStore("supportServiceStore", () => {
|
||||
const { showLoader, hideLoader, messageError } = useCounterMixin();
|
||||
const $q = useQuasar();
|
||||
const openChat = ref<boolean>(false);
|
||||
const icon = ref<string>("mdi-account-check");
|
||||
|
||||
|
|
@ -114,7 +113,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
|
|||
const res = await http
|
||||
.get(config.API.supportMessageStatus(issueId))
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
|
|
@ -129,7 +128,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
|
|||
const res = await http
|
||||
.get(config.API.supportMessage(issueId))
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
|
|
@ -149,7 +148,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
|
|||
const res = await http
|
||||
.get(config.API.supportIssueUserId(userId.value))
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
|
|
@ -166,7 +165,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
|
|||
const res = await http
|
||||
.get(config.API.supportIssueCategory)
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
|
|
@ -188,7 +187,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
|
|||
const res = await http
|
||||
.post(config.API.supportNewIssue, requestBody)
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
|
|
@ -203,7 +202,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
|
|||
const res = await http
|
||||
.get(config.API.supportSearchIssue(searchData))
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
});
|
||||
if (res && res.data) {
|
||||
issue.value = res.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue