From 2a706ac5ba0c2969c2303e769dce04b17f13368e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Tue, 8 Sep 2020 20:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=EF=BC=9Ahttps://github.co?= =?UTF-8?q?m/WeBankFinTech/fes.js/issues/12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-core/package.json | 2 +- packages/fes-core/src/instance/app.js | 2 +- packages/fes-template/src/pages/home/index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/fes-core/package.json b/packages/fes-core/package.json index 7cb0a4bb..b05f7941 100644 --- a/packages/fes-core/package.json +++ b/packages/fes-core/package.json @@ -1,6 +1,6 @@ { "name": "@webank/fes-core", - "version": "0.1.1", + "version": "0.1.2", "description": "一个好用的前端管理台快速开发框架", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/packages/fes-core/src/instance/app.js b/packages/fes-core/src/instance/app.js index 122095c9..0ae41bff 100644 --- a/packages/fes-core/src/instance/app.js +++ b/packages/fes-core/src/instance/app.js @@ -204,7 +204,7 @@ class App { } async setDefaultPage() { - const defaultPage = await this.getDefaultPage(true); + const defaultPage = await this.getDefaultPage(false); this.router.push(defaultPage); } diff --git a/packages/fes-template/src/pages/home/index.vue b/packages/fes-template/src/pages/home/index.vue index ab58795f..3c146d08 100644 --- a/packages/fes-template/src/pages/home/index.vue +++ b/packages/fes-template/src/pages/home/index.vue @@ -76,7 +76,7 @@ export default { if (this.validate()) { this.FesApi.fetch('login').then(() => { // 设置用户、角色等 - this.FesApp.set('FesUserName', '万纯(harrywan)'); + this.FesApp.set('FesUserName', 'harrywan'); this.FesApp.set('FesRoleName', '管理员'); this.FesStorage.set('userLogin', true); this.getRole();