神仙都没用 hace 1 año
padre
commit
0f2cb98c42
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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] || []);
 	}
 
 	// 查找