feat: 修复构建.

This commit is contained in:
lijiahangmax
2024-01-10 00:10:39 +08:00
parent d78d2a2053
commit 3f1a6aa0d1
8 changed files with 20 additions and 20 deletions

View File

@@ -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,