Browse Source

修改个人中心

zs 1 year ago
parent
commit
8aa7a48b64
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/service/init.service.ts

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

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