mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
This commit is contained in:
parent
b0b3fcc68e
commit
2a706ac5ba
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@webank/fes-core",
|
"name": "@webank/fes-core",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"description": "一个好用的前端管理台快速开发框架",
|
"description": "一个好用的前端管理台快速开发框架",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
@ -204,7 +204,7 @@ class App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async setDefaultPage() {
|
async setDefaultPage() {
|
||||||
const defaultPage = await this.getDefaultPage(true);
|
const defaultPage = await this.getDefaultPage(false);
|
||||||
this.router.push(defaultPage);
|
this.router.push(defaultPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ export default {
|
|||||||
if (this.validate()) {
|
if (this.validate()) {
|
||||||
this.FesApi.fetch('login').then(() => {
|
this.FesApi.fetch('login').then(() => {
|
||||||
// 设置用户、角色等
|
// 设置用户、角色等
|
||||||
this.FesApp.set('FesUserName', '万纯(harrywan)');
|
this.FesApp.set('FesUserName', 'harrywan');
|
||||||
this.FesApp.set('FesRoleName', '管理员');
|
this.FesApp.set('FesRoleName', '管理员');
|
||||||
this.FesStorage.set('userLogin', true);
|
this.FesStorage.set('userLogin', true);
|
||||||
this.getRole();
|
this.getRole();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user