เก็บ tab ใน store

This commit is contained in:
setthawutttty 2025-05-02 13:52:17 +07:00
parent d3d6feb379
commit c3282f4738
3 changed files with 11 additions and 10 deletions

View file

@ -20,6 +20,7 @@ const { messageError } = useCounterMixin();
export const useRegistryNewDataStore = defineStore("registryNew", () => {
const route = useRoute();
const tab = ref<string>("1");
const routerName = ref<any>();
const searchTypeOption = computed<DataOption[]>(() => {
return [
@ -260,5 +261,6 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
createPathUploadFlie,
getPathUploadFlie,
uploadFile,
tab
};
});