diff --git a/src/App.vue b/src/App.vue
index 9a6554b9038099e36bc34130174134ede58106a2..728979eb68c214ffcbc11fc4b60d5f89117f0edd 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -46,7 +46,7 @@ export default {
return this.$store.state.menuObj
},
navShow(){
- return false||!['/404','/login'].includes(this.$route.path)
+ return false||!['/','/404','/login'].includes(this.$route.path)
},
pageShow(){
return false||!['/404','/login'].includes(this.$route.path)
diff --git a/src/components/bg-menu.vue b/src/components/bg-menu.vue
index 9586b731311800943a9efa0d5b12867d90fccfcb..9a6674f460fb244f42dc2a9d26b71ad4e2b65e68 100644
--- a/src/components/bg-menu.vue
+++ b/src/components/bg-menu.vue
@@ -49,7 +49,7 @@
-
+
@@ -68,11 +68,11 @@
v-for="(item, index) in systemMenu"
class="menu-item text_clip"
:key="index + 700"
- @click="menuAction(item.path,item)"
+ @click.stop="menuAction(item.path,item)"
>
{{ item.menuName }}
-
@@ -194,6 +194,11 @@ export default {
// })
},
menuAction(n,parent) {
+ debugger
+ //不存在则不跳转
+ if(!n){
+ return
+ }
if (n == "logout") {
this.$axios.get(`/apaas/system/logout`).then(res=>{
if(res.data.code=='200'){
diff --git a/vite.config.js b/vite.config.js
index 0daefe5eb3ab9965e209b95c01c9a75aa0e31108..5c6282805875a5175a895cbb3a8ef32985c3049f 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -35,7 +35,25 @@ export default {
rewrite: path => path.replace(/^\/apaas\/system/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL
secure: false,//解决证书缺失问题
- }
+ },
+ '/apaas/portal':{
+ target: 'https://apaas5.wodcloud.com/apaas/portal', // 所要代理的目标地址
+ rewrite: path => path.replace(/^\/apaas\/portal/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
+ changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL
+ secure: false,//解决证书缺失问题
+ },
+ '/apaas/service':{
+ target: 'https://apaas5.wodcloud.com/apaas/service', // 所要代理的目标地址
+ rewrite: path => path.replace(/^\/apaas\/service/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
+ changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL
+ secure: false,//解决证书缺失问题
+ },
+ '/apaas/common':{
+ target: 'https://apaas5.wodcloud.com/apaas/common', // 所要代理的目标地址
+ rewrite: path => path.replace(/^\/apaas\/common/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
+ changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL
+ secure: false,//解决证书缺失问题
+ },
}
},
build:{