let appid = process.env.appid
let isFFZ = process.env.appid = = "ffz"
let isLOTTERY = process.env.appid = =" lottery"
let isCLUB = process.env.appid = = "club"
let isFFZF = process.env.appid = =" ffzf"
let isPOCKET = process.env.appid = = "pocket"
let isTOOL = process.env.appid = =" tool"
export {
isiOS,
isInWx,
isCLUB,
isFFZ,
isFFZF,
isLOTTERY,
isPOCKET,
isTOOL
}
//
let router
if (isFFZ){
router = require("@/router/ffzindex").default
}
else if (isCLUB){
router = require("@/router/clubindex").default
}
else if(isLOTTERY){
router = require("@/router/index").default
}
else if(isFFZF){
router = require("@/router/ffzfindex").default
}
else if(isPOCKET){
router = require("@/router/pocketindex").default
}
else if(isTOOL){
router = require("@/router/toolrouter").default
}
as shown in the picture, it leads to repeated packaging, and it is useless to judge the introduction! Ask all of you for advice