From bb3e45808668dbc01d2df6f8312dd477fa762fc4 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Fri, 29 Aug 2025 15:15:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(router):=20=E7=A7=BB=E9=99=A4=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=97=A5=E5=BF=97=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=BC=80=E5=85=B3=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 FG_LOG_ENABLE 开关控制调试日志输出 移除 index 页面中的无用 console.log --- src/pages/index/index.vue | 6 ++---- src/router/interceptor.ts | 16 +++++++++------- src/tabbar/store.ts | 3 ++- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1bf3bbf..39867f0 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -44,9 +44,9 @@ const description = ref( 'unibest 是一个集成了多种工具和技术的 uniapp 开发模板,由 uniapp + Vue3 + Ts + Vite5 + UnoCss + VSCode 构建,模板具有代码提示、自动格式化、统一配置、代码片段等功能,并内置了许多常用的基本组件和基本功能,让你编写 uniapp 拥有 best 体验。', ) console.log('index/index 首页打印了') -// 测试 uni API 自动引入 + onLoad(() => { - console.log('项目作者:', author.value) + console.log('测试 uni API 自动引入: onLoad') }) function toLogin() { @@ -54,8 +54,6 @@ function toLogin() { url: LOGIN_PAGE, }) } - -console.log('index')