|
@@ -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() {
|