|
@@ -27,7 +27,7 @@ router.beforeEach(async (to, from, next) => {
|
|
// 登录成功时将路由置空
|
|
// 登录成功时将路由置空
|
|
if (store.getters.permission_routes.length==0) {
|
|
if (store.getters.permission_routes.length==0) {
|
|
await store.dispatch('GenerateRoutes').then(accessRoutes => {
|
|
await store.dispatch('GenerateRoutes').then(accessRoutes => {
|
|
- if (to.path!='/dashboard'){
|
|
|
|
|
|
+ if (to.path!=='/dashboard' && to.path!=='/user/profile'){
|
|
let ff = false
|
|
let ff = false
|
|
accessRoutes.map((item)=>{
|
|
accessRoutes.map((item)=>{
|
|
if (item.children){
|
|
if (item.children){
|