WholeProcessPlatform/frontend/src/store/modules/model.ts

30 lines
537 B
TypeScript
Raw Normal View History

import { defineStore } from 'pinia';
import { ref } from 'vue';
export const useModelStore = defineStore('model', () => {
// state
const modalVisible = ref(false);
const currentTabKey = ref("basicInfo");
const tabList = ref([]);
const title = ref('');
const isBasicEdit = ref(false);
const params = ref<{
sttp: string;
2026-05-26 19:30:22 +08:00
stcd: any;
date: any;
}>({
2026-05-26 19:30:22 +08:00
sttp: 'eng',
stcd: '',
date: '',
});
return {
params,
modalVisible,
currentTabKey,
tabList,
title,
isBasicEdit,
};
});