เพิ่ม router.push ไปทะเบียน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-08-22 17:56:24 +07:00
parent c5b95ef15b
commit bbe2dcb273
4 changed files with 44 additions and 21 deletions

View file

@ -1,6 +1,7 @@
import { defineStore } from "pinia";
import { ref, } from "vue";
import { useCounterMixin } from "@/stores/mixin";
const mixin = useCounterMixin();
const {
date2Thai
@ -12,7 +13,6 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
let typeOc = ref<string>("")
let rows = ref<any>([])
const listinsignia = ref<any>([])
const typeinsigniaValues: Set<number> = new Set();
const typeinsignia = ref<number | string>("all");
let typeinsigniaOptions = ref<any>([{ id: "all", name: "ทั้งหมด" }]);
@ -66,6 +66,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
}
}
};
return {
optionsTypeOc,
typeOc,
@ -74,6 +75,5 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
typeinsignia,
fetchData,
searchFilterTable,
};
});