15 lines
231 B
TypeScript
15 lines
231 B
TypeScript
|
|
import { defineStore } from 'pinia';
|
||
|
|
import { ref } from 'vue';
|
||
|
|
|
||
|
|
export const useModelStore = defineStore('model', () => {
|
||
|
|
// state
|
||
|
|
const info = ref<{
|
||
|
|
type: string;
|
||
|
|
}>({
|
||
|
|
type: 'zh'
|
||
|
|
});
|
||
|
|
return {
|
||
|
|
info,
|
||
|
|
};
|
||
|
|
});
|