mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-23 23:39:47 +08:00
optimize(projects): 字典状态使用枚举值
This commit is contained in:
@ -4,5 +4,6 @@ export enum SetupStoreId {
|
||||
Auth = 'auth-store',
|
||||
Route = 'route-store',
|
||||
Tab = 'tab-store',
|
||||
Notice = 'notice-store'
|
||||
Notice = 'notice-store',
|
||||
Dict = 'dict-store'
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { ref } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
import { $t } from '@/locales';
|
||||
import { SetupStoreId } from '@/enum';
|
||||
|
||||
export const useDictStore = defineStore('dict', () => {
|
||||
export const useDictStore = defineStore(SetupStoreId.Dict, () => {
|
||||
const dictData = ref<{ [key: string]: Api.System.DictData[] }>({});
|
||||
|
||||
const getDict = (key: string) => {
|
||||
|
Reference in New Issue
Block a user