瀏覽代碼

init admin bug

lrf 3 年之前
父節點
當前提交
c82fc2911a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app.js

+ 2 - 1
app.js

@@ -9,7 +9,8 @@ class AppBootHook {
     if (!data) {
       // 没有管理员,初始化一个
       const data = {
-        account: 'admin',
+        name: 'admin',
+        phone: 'admin',
         password: { secret: '123456' },
       };
       await this.app.model.Admin.create(data);