From 7b91693b9c98d50305d52f251559c3de8e3bca75 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Sat, 24 Feb 2024 15:17:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=EF=B8=8F=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start.js | 6 +++--- src/components/subnav/main.js | 2 +- src/pages/exchangecode/combiningAdd/index.jsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/start.js b/scripts/start.js index bfb291f3..b8c2aec7 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -1,9 +1,9 @@ // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = "development" process.env.NODE_ENV = "development" -process.env.BASE_URL = "http://pre.marketapi.1688sup.com" -process.env.UNIFIED_API = "http://api.gray.user.1688sup.com/v1" -process.env.UNIFIED_URL = "http://gray.user.1688sup.com/#/login" +process.env.BASE_URL = "http://test.marketapi.1688sup.com" +process.env.UNIFIED_API = "http://api.test.user.1688sup.com/v1" +process.env.UNIFIED_URL = "http://test.user.1688sup.com/#/login" // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will diff --git a/src/components/subnav/main.js b/src/components/subnav/main.js index 86df35a9..38b7d696 100644 --- a/src/components/subnav/main.js +++ b/src/components/subnav/main.js @@ -186,7 +186,7 @@ export default class topNav extends React.Component {
- {this.state.menulinklist.map((item, key) => { + {this.state.menulinklist?.map((item, key) => { return item.level == 5 ? (