Procházet zdrojové kódy

修改个人中心

zs před 1 rokem
rodič
revize
8aa7a48b64
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/service/init.service.ts

+ 2 - 1
src/service/init.service.ts

@@ -26,6 +26,7 @@ export class InitService {
       account: 'admin',
       password: '1qaz2wsx',
       nick_name: '系统管理员',
+      role: 'Admin',
       is_super: '0',
     };
     const is_exist = await this.adminModel.count({ is_super: '0' });
@@ -36,7 +37,7 @@ export class InitService {
   async initRole() {
     const num = await this.roleModel.count();
     if (num > 0) return;
-    const datas = [{ name: '管理员', code: 'admin' }];
+    const datas = [{ name: '管理员', code: 'Admin' }];
     await this.roleModel.insertMany(datas);
   }
   async initMenus() {