🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-02-24 15:17:56 +08:00
parent 65d024d1a4
commit 7b91693b9c
3 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
// Do this as the first thing so that any code reading it knows the right env. // Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = "development" process.env.BABEL_ENV = "development"
process.env.NODE_ENV = "development" process.env.NODE_ENV = "development"
process.env.BASE_URL = "http://pre.marketapi.1688sup.com" process.env.BASE_URL = "http://test.marketapi.1688sup.com"
process.env.UNIFIED_API = "http://api.gray.user.1688sup.com/v1" process.env.UNIFIED_API = "http://api.test.user.1688sup.com/v1"
process.env.UNIFIED_URL = "http://gray.user.1688sup.com/#/login" process.env.UNIFIED_URL = "http://test.user.1688sup.com/#/login"
// Makes the script crash on unhandled rejections instead of silently // Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled will // ignoring them. In the future, promise rejections that are not handled will

View File

@ -186,7 +186,7 @@ export default class topNav extends React.Component {
<div className="linkmenu"> <div className="linkmenu">
<div className="dflexaj navshow"> <div className="dflexaj navshow">
<div className="linkmenu-row"> <div className="linkmenu-row">
{this.state.menulinklist.map((item, key) => { {this.state.menulinklist?.map((item, key) => {
return item.level == 5 ? ( return item.level == 5 ? (
<Link <Link
key={key} key={key}

View File

@ -420,7 +420,7 @@ export default class combiningAdd extends React.Component {
type: 2, type: 2,
quantity: codeInfo.quantity, quantity: codeInfo.quantity,
group_cover: codeInfo.group_cover[0].src, group_cover: codeInfo.group_cover[0].src,
group_image: codeInfo.group_image[0] && codeInfo.group_image[0].src, group_image: codeInfo.group_image[0] ? codeInfo.group_image[0].src : "",
instruction: codeInfo.instruction, instruction: codeInfo.instruction,
receive_mode: codeInfo.receive_mode, receive_mode: codeInfo.receive_mode,
channel: codeInfo.channel, channel: codeInfo.channel,
@ -469,7 +469,7 @@ export default class combiningAdd extends React.Component {
type: 2, type: 2,
quantity: codeInfo.quantity, quantity: codeInfo.quantity,
group_cover: codeInfo.group_cover[0].src, group_cover: codeInfo.group_cover[0].src,
group_image: codeInfo.group_image[0] && codeInfo.group_image[0].src, group_image: codeInfo.group_image[0] ? codeInfo.group_image[0].src : "",
instruction: codeInfo.instruction, instruction: codeInfo.instruction,
receive_mode: codeInfo.receive_mode, receive_mode: codeInfo.receive_mode,
channel: codeInfo.channel, channel: codeInfo.channel,