feat:隐藏debug页入口

This commit is contained in:
2025-07-03 08:54:30 +08:00
parent 8006695f65
commit fdf8a31f32
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ App<IAppOption>({
},
onLaunch() {
const accountInfo = wx.getAccountInfoSync();
const env = accountInfo.miniProgram.envVersion;
const env = accountInfo.miniProgram.envVersion || 'release';
this.globalData.env = env;
if (env !== 'release') {
const printHeader = wx.getStorageSync('printHeader') || 'wechat';