Commit 63d38dc6 authored by 邓晓峰's avatar 邓晓峰

fix: 修复基础菜单寻址bug

parent 53bff02c
Pipeline #35382 skipped with stages
/* eslint-disable */ /* eslint-disable */
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin; // const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
const proxyURL = 'http://192.168.10.150:8669'; const proxyURL = 'http://172.16.10.206:8666';
module.exports = { module.exports = {
assetsRoot: process.env.NODE_ENV !== 'production' ? proxyURL : './', assetsRoot: process.env.NODE_ENV !== 'production' ? proxyURL : './',
dev: { dev: {
......
...@@ -273,7 +273,7 @@ const BasicLayout = props => { ...@@ -273,7 +273,7 @@ const BasicLayout = props => {
true, true,
); );
const parentMenuName = initSelectRoute && initSelectRoute.parent.label; const parentMenuName = initSelectRoute && initSelectRoute.parent && initSelectRoute.parent.label;
if(parentMenuName) { if(parentMenuName) {
let currentChildrenRoute = currentRoutes.routes.find(item => item.name === parentMenuName); let currentChildrenRoute = currentRoutes.routes.find(item => item.name === parentMenuName);
if(!currentChildrenRoute) { if(!currentChildrenRoute) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment