神仙都没用 1 年之前
父節點
當前提交
0f2cb98c42
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/dict/store/dict.ts

+ 1 - 1
src/modules/dict/store/dict.ts

@@ -13,7 +13,7 @@ const useDictStore = defineStore("dict", () => {
 
 	// 获取
 	function get(name: string) {
-		return computed(() => data[name]);
+		return computed(() => data[name] || []);
 	}
 
 	// 查找