神仙都没用 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] || []);
 	}
 
 	// 查找