diff --git a/src/router/index.js b/src/router/index.js index d21674fdd..d6538468c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -387,6 +387,7 @@ export const asyncRouter = [ { path: '/design', component: Layout, + redirect: '/design/home', meta: { roles: [admin, user, userDesign] }, diff --git a/src/views/designPlatform/userDemonList.vue b/src/views/designPlatform/userDemonList.vue index e9f4964a2..29110175b 100644 --- a/src/views/designPlatform/userDemonList.vue +++ b/src/views/designPlatform/userDemonList.vue @@ -194,7 +194,7 @@ // } case 'mapDesign': { // this.resize(); - this.$router.push({ path: `${UrlConfig.designUser.mapDraw}/${obj.mapId}/draft`, query: { name: this.mapName } }); + this.$router.push({ path: `${UrlConfig.designUser.mapDraw}/${obj.mapId}/draft`, query: { name: obj.mapName } }); break; } // case 'lessonDesign': {