From 78b49d92b13e30f2439a48711d23bb9fd3a12301 Mon Sep 17 00:00:00 2001 From: xuan Date: Tue, 6 Dec 2022 16:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore(pre):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?pre=E6=9E=84=E5=BB=BA=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/project.config.json | 5 ++--- config/pre.js | 2 +- src/pages/index/components/productClass/index.tsx | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/project.config.json b/build/project.config.json index b397a5e..42d5f26 100644 --- a/build/project.config.json +++ b/build/project.config.json @@ -1,5 +1,5 @@ { - "miniprogramRoot": "", + "miniprogramRoot": "./", "projectname": "Mall-lymarket", "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "appid": "wx64fe67f111d52457", @@ -31,8 +31,7 @@ }, "disableUseStrict": false, "useCompilerPlugins": false, - "minifyWXML": true, - "ignoreUploadUnusedFiles": true + "minifyWXML": true }, "compileType": "miniprogram", "libVersion": "2.24.5", diff --git a/config/pre.js b/config/pre.js index 2e26466..2ed0102 100644 --- a/config/pre.js +++ b/config/pre.js @@ -4,7 +4,7 @@ module.exports = { env: { NODE_ENV: '"pre"', }, - outputRoot: 'build', + outputRoot: 'dist', defineConstants: { CURRENT_BASE_URL: '"https://pre.zzfzyc.com/lymarket"', CURRENT_CAP_HTML_TO_IMAGE_BASE_URL: '"https://pre.zzfzyc.com"', diff --git a/src/pages/index/components/productClass/index.tsx b/src/pages/index/components/productClass/index.tsx index 049d459..2b8d71f 100644 --- a/src/pages/index/components/productClass/index.tsx +++ b/src/pages/index/components/productClass/index.tsx @@ -25,7 +25,7 @@ const ProductClassLine = memo((option: ParamProduct) => { useEffect(() => { let data: { item: any; index: number } = { item: null, index: 0 } - list?.filter((item, index) => { + list?.forEach((item, index) => { if (item.id == defaultSelectId) { data = { item, index } } @@ -124,3 +124,4 @@ const PrcductSub = (option: Param) => { ) } +export default PrcductSub