diff --git a/public/facion.ico b/public/favicon.ico similarity index 100% rename from public/facion.ico rename to public/favicon.ico diff --git a/public/index.html b/public/index.html index 28d9c8a..cfbfdaa 100644 --- a/public/index.html +++ b/public/index.html @@ -8,7 +8,7 @@ - + <%= webpackConfig.name %> diff --git a/src/permission.js b/src/permission.js index 2112611..0fe50f6 100644 --- a/src/permission.js +++ b/src/permission.js @@ -12,7 +12,6 @@ const whiteList = ['/login','/s','/s_m','/share'] // 白名单 router.beforeEach(async(to, from, next) => { // 开始进度条 NProgress.start() - // 设置页面标题 document.title = getPageTitle(to.meta.title) @@ -53,7 +52,7 @@ router.beforeEach(async(to, from, next) => { next() } else { // 其他没有token重定向到登录页面。 - next(`/login?redirect=${to.path}`) + next(`/login?redirect=${window.location.pathname}`) NProgress.done() } } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index ebfdc67..83443a7 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -5,7 +5,6 @@
- @@ -93,6 +92,7 @@