2026-05-08 19:11:10 +08:00
|
|
|
import { defineStore } from 'pinia';
|
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
|
|
export const useModelStore = defineStore('model', () => {
|
|
|
|
|
// state
|
2026-05-09 19:30:03 +08:00
|
|
|
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-08 19:11:10 +08:00
|
|
|
}>({
|
2026-05-09 19:30:03 +08:00
|
|
|
sttp: 'eng'
|
2026-05-08 19:11:10 +08:00
|
|
|
});
|
|
|
|
|
return {
|
2026-05-09 19:30:03 +08:00
|
|
|
params,
|
|
|
|
|
modalVisible,
|
|
|
|
|
currentTabKey,
|
|
|
|
|
tabList,
|
|
|
|
|
title,
|
|
|
|
|
isBasicEdit,
|
2026-05-08 19:11:10 +08:00
|
|
|
};
|
|
|
|
|
});
|