mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-13 06:02:49 +00:00
优化
This commit is contained in:
parent
e019f75456
commit
0f2cb98c42
@ -13,7 +13,7 @@ const useDictStore = defineStore("dict", () => {
|
|||||||
|
|
||||||
// 获取
|
// 获取
|
||||||
function get(name: string) {
|
function get(name: string) {
|
||||||
return computed(() => data[name]);
|
return computed(() => data[name] || []);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查找
|
// 查找
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user