Explorar o código

fix 修复 !pr47 导致的打包异常

疯狂的狮子Li hai 1 ano
pai
achega
6fe269efc7
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/types/global.d.ts
  2. 1 1
      src/views/system/user/index.vue

+ 1 - 1
src/types/global.d.ts

@@ -13,7 +13,7 @@ declare global {
     key: number;
     label: string;
     visible: boolean;
-    children: Array<FieldOption>;
+    children?: Array<FieldOption>;
   }
 
   /**

+ 1 - 1
src/views/system/user/index.vue

@@ -561,7 +561,7 @@ const handleAdd = async () => {
   await initTreeData();
   postOptions.value = data.posts;
   roleOptions.value = data.roles;
-  form.value.password = initPassword.value;
+  form.value.password = initPassword.value.toString();
 }
 /** 修改按钮操作 */
 const handleUpdate = async (row?: UserForm) => {