fix Vue warn
This commit is contained in:
parent
5c06f82031
commit
faf9c4c7f3
4 changed files with 14 additions and 26 deletions
|
|
@ -1,11 +1,9 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref, reactive, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import axios from "axios";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||
|
|
@ -15,9 +13,6 @@ import type {
|
|||
} from "@/modules/04_registryPerson/interface/response/Main";
|
||||
import type { FormFilter } from "@/modules/04_registryPerson/interface/request/Main";
|
||||
|
||||
const $q = useQuasar();
|
||||
const { messageError } = useCounterMixin();
|
||||
|
||||
export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
||||
const route = useRoute();
|
||||
const tab = ref<string>("1");
|
||||
|
|
@ -188,7 +183,7 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
|||
|
||||
return res.data["เอกสารหลักฐาน"].uploadUrl;
|
||||
} catch (err) {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -216,7 +211,7 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
|||
);
|
||||
return res.data;
|
||||
} catch (err) {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -233,7 +228,7 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
|||
},
|
||||
});
|
||||
} catch (err) {
|
||||
messageError($q, err);
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -261,6 +256,6 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
|
|||
createPathUploadFlie,
|
||||
getPathUploadFlie,
|
||||
uploadFile,
|
||||
tab
|
||||
tab,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue