🐳 chore(pre): 修改pre构建目录
This commit is contained in:
parent
46e5c33bf7
commit
78b49d92b1
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"miniprogramRoot": "",
|
"miniprogramRoot": "./",
|
||||||
"projectname": "Mall-lymarket",
|
"projectname": "Mall-lymarket",
|
||||||
"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||||
"appid": "wx64fe67f111d52457",
|
"appid": "wx64fe67f111d52457",
|
||||||
@ -31,8 +31,7 @@
|
|||||||
},
|
},
|
||||||
"disableUseStrict": false,
|
"disableUseStrict": false,
|
||||||
"useCompilerPlugins": false,
|
"useCompilerPlugins": false,
|
||||||
"minifyWXML": true,
|
"minifyWXML": true
|
||||||
"ignoreUploadUnusedFiles": true
|
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.24.5",
|
"libVersion": "2.24.5",
|
||||||
|
|||||||
@ -4,7 +4,7 @@ module.exports = {
|
|||||||
env: {
|
env: {
|
||||||
NODE_ENV: '"pre"',
|
NODE_ENV: '"pre"',
|
||||||
},
|
},
|
||||||
outputRoot: 'build',
|
outputRoot: 'dist',
|
||||||
defineConstants: {
|
defineConstants: {
|
||||||
CURRENT_BASE_URL: '"https://pre.zzfzyc.com/lymarket"',
|
CURRENT_BASE_URL: '"https://pre.zzfzyc.com/lymarket"',
|
||||||
CURRENT_CAP_HTML_TO_IMAGE_BASE_URL: '"https://pre.zzfzyc.com"',
|
CURRENT_CAP_HTML_TO_IMAGE_BASE_URL: '"https://pre.zzfzyc.com"',
|
||||||
|
|||||||
@ -25,7 +25,7 @@ const ProductClassLine = memo((option: ParamProduct) => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let data: { item: any; index: number } = { item: null, index: 0 }
|
let data: { item: any; index: number } = { item: null, index: 0 }
|
||||||
list?.filter((item, index) => {
|
list?.forEach((item, index) => {
|
||||||
if (item.id == defaultSelectId) {
|
if (item.id == defaultSelectId) {
|
||||||
data = { item, index }
|
data = { item, index }
|
||||||
}
|
}
|
||||||
@ -124,3 +124,4 @@ const PrcductSub = (option: Param) => {
|
|||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
export default PrcductSub
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user