feat: 修复构建.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { RadioOption } from '@arco-design/web-vue/es/radio/interface';
|
||||
import type { DictState } from './types';
|
||||
import type { Options } from '@/types/global';
|
||||
import { defineStore } from 'pinia';
|
||||
@@ -28,6 +29,11 @@ export default defineStore('dict', {
|
||||
return this.$state[key];
|
||||
},
|
||||
|
||||
// 获取字典选项
|
||||
toRadioOptions(key: string) {
|
||||
return this.$state[key] as RadioOption[];
|
||||
},
|
||||
|
||||
// 获取字典值
|
||||
getDictValue(dict: string,
|
||||
value: any,
|
||||
|
||||
Reference in New Issue
Block a user