From 72c757dc33b1f4aac01b08065050c95ef9fd51ae Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Fri, 19 Aug 2022 11:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor:=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.private.config.json | 3 ++- src/pages/index/{index.cofig.ts => index.config.ts} | 0 src/pages/index/index.tsx | 7 +++++++ src/pages/order/{index.cofig.ts => index.config.ts} | 0 src/pages/{index/index.ts => order/index.tsx} | 0 src/pages/user/index.ts | 0 src/pages/{order/index.ts => user/index.tsx} | 0 7 files changed, 9 insertions(+), 1 deletion(-) rename src/pages/index/{index.cofig.ts => index.config.ts} (100%) create mode 100644 src/pages/index/index.tsx rename src/pages/order/{index.cofig.ts => index.config.ts} (100%) rename src/pages/{index/index.ts => order/index.tsx} (100%) delete mode 100644 src/pages/user/index.ts rename src/pages/{order/index.ts => user/index.tsx} (100%) diff --git a/project.private.config.json b/project.private.config.json index 503b9df..241bfe7 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,7 +1,8 @@ { "projectname": "EShop", "setting": { - "compileHotReLoad": true + "compileHotReLoad": true, + "bigPackageSizeSupport": true }, "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "condition": { diff --git a/src/pages/index/index.cofig.ts b/src/pages/index/index.config.ts similarity index 100% rename from src/pages/index/index.cofig.ts rename to src/pages/index/index.config.ts diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx new file mode 100644 index 0000000..355eded --- /dev/null +++ b/src/pages/index/index.tsx @@ -0,0 +1,7 @@ +export default () => { + return ( + <> + 222 + + ) +} diff --git a/src/pages/order/index.cofig.ts b/src/pages/order/index.config.ts similarity index 100% rename from src/pages/order/index.cofig.ts rename to src/pages/order/index.config.ts diff --git a/src/pages/index/index.ts b/src/pages/order/index.tsx similarity index 100% rename from src/pages/index/index.ts rename to src/pages/order/index.tsx diff --git a/src/pages/user/index.ts b/src/pages/user/index.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/order/index.ts b/src/pages/user/index.tsx similarity index 100% rename from src/pages/order/index.ts rename to src/pages/user/index.tsx