liujintao 2 сар өмнө
parent
commit
5d9f6d6110

+ 3 - 0
src/utils/dictionary.ts

@@ -7,5 +7,8 @@ import { DictionaryStore } from '/@/stores/dictionary';
 export const dictionary = (name: string) => {
 export const dictionary = (name: string) => {
   const dict = DictionaryStore()
   const dict = DictionaryStore()
   const dictionary = toRaw(dict.data)
   const dictionary = toRaw(dict.data)
+  if (!dictionary || Object.keys(dictionary).length === 0) {
+    DictionaryStore().getSystemDictionarys()
+  }
   return dictionary[name]
   return dictionary[name]
 }
 }

+ 1 - 1
src/views/system/user/crud.tsx

@@ -266,7 +266,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
                 url: url,
                 url: url,
                 params: {
                 params: {
                   page: 1,
                   page: 1,
-                  limit: 10,
+                  limit: 30,
                 },
                 },
               }).then((ret: any) => {
               }).then((ret: any) => {
                 return ret.data;
                 return ret.data;