mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
1、修复在线表单初始化表单组件信息错误。
This commit is contained in:
@@ -4,7 +4,9 @@ import useLoginStore from './login';
|
||||
import useLayoutStore from './layout';
|
||||
import useOtherStore from './other';
|
||||
import useMessage from './message';
|
||||
import useStaticDictStore from './staticDict';
|
||||
|
||||
const pinia = createPinia();
|
||||
pinia?.use(piniaPersist);
|
||||
export { useLoginStore, useLayoutStore, useMessage, useOtherStore };
|
||||
export { useLoginStore, useLayoutStore, useMessage, useOtherStore, useStaticDictStore };
|
||||
export default pinia;
|
||||
|
||||
15
OrangeFormsOpen-VUE3/src/store/staticDict.ts
Normal file
15
OrangeFormsOpen-VUE3/src/store/staticDict.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { ANY_OBJECT } from '@/types/generic';
|
||||
|
||||
export default defineStore('staticDict', {
|
||||
state: () => {
|
||||
return {
|
||||
staticDict: {} as ANY_OBJECT,
|
||||
};
|
||||
},
|
||||
actions: {
|
||||
setStaticDict(dict: ANY_OBJECT) {
|
||||
this.staticDict = dict;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user