From ec7f234dc46f9a0f7af5f29c0d47f906cb963e4c Mon Sep 17 00:00:00 2001 From: xuan Date: Tue, 6 Dec 2022 14:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(=E6=88=91=E7=9A=84):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/project.config.json | 19 ++++++++++--------- src/pages/user/index.tsx | 6 ++++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/build/project.config.json b/build/project.config.json index 7d18e8f..b397a5e 100644 --- a/build/project.config.json +++ b/build/project.config.json @@ -1,8 +1,10 @@ { "miniprogramRoot": "", + "projectname": "Mall-lymarket", "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "appid": "wx64fe67f111d52457", "setting": { - "urlCheck": true, + "urlCheck": false, "es6": false, "postcss": true, "minified": true, @@ -21,7 +23,7 @@ "useStaticServer": true, "showES6CompileOption": false, "checkInvalidKey": true, - "compileHotReLoad": false, + "compileHotReLoad": true, "babelSetting": { "ignore": [], "disablePlugins": [], @@ -33,16 +35,15 @@ "ignoreUploadUnusedFiles": true }, "compileType": "miniprogram", + "libVersion": "2.24.5", "srcMiniprogramRoot": "dist/", - "condition": {}, - "editorSetting": { - "tabIndent": "insertSpaces", - "tabSize": 2 - }, - "libVersion": "2.28.0", "packOptions": { "ignore": [], "include": [] }, - "appid": "wx64fe67f111d52457" + "condition": {}, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 2 + } } \ No newline at end of file diff --git a/src/pages/user/index.tsx b/src/pages/user/index.tsx index f8c9049..83ae709 100644 --- a/src/pages/user/index.tsx +++ b/src/pages/user/index.tsx @@ -17,6 +17,8 @@ import LayoutBlock from '@/components/layoutBlock' import IconCard from '@/components/iconCard' import type { IconNames } from '@/components/iconfont/iconfont' import useUserInfo from '@/use/useUserInfo' +import { useSelector } from '@/reducers/hooks' +import { BASE_URL } from '@/common/constant' // 用户头像 const UserAvatar = ({ src }: { src?: string }) => { @@ -242,6 +244,10 @@ const User = () => { <> + + {/* 测试暂时添加 */} + {CURRENT_ENV === 'development' && {CURRENT_VERSION}} + {CURRENT_ENV === 'development' && {BASE_URL}} )