Browse Source

⚙️ 修改版本号显示

快乐的梦鱼 1 month ago
parent
commit
76624b5e36
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/common/config/AppCofig.ts
  2. 3 3
      src/pages/user/debug/DebugButton.vue

+ 1 - 1
src/common/config/AppCofig.ts

@@ -3,7 +3,7 @@
  * 说明:应用静态配置
  */
 export default {
-  version: '0.0.1',
+  version: '1.1.0',
   buildTime: (globalThis as any).__BUILD_TIMESTAMP__ as number,
   buildInfo: (globalThis as any).__BUILD_GUID__ as string,
   appId: 'wx1845c7dab9e8b236',

+ 3 - 3
src/pages/user/debug/DebugButton.vue

@@ -1,5 +1,5 @@
 <template>
-  <Touchable direction="column" center :padding="40" :gap="10" @click="showBuildInfo">
+  <Touchable v-if="showAct" direction="column" center :padding="40" :gap="10" @click="showBuildInfo">
     <Text 
       color="text.second"
       :fontSize="22"
@@ -27,7 +27,7 @@ function showBuildInfo() {
      '\n构建GUID:' + AppCofig.buildInfo) : ''),
     icon: 'prompt-filling',
     iconColor: 'primary',
-    customButtons: showAct ? [
+    customButtons: [
       {
         text: '测试非遗路线页面',
         name: 'testRoutePage',
@@ -40,7 +40,7 @@ function showBuildInfo() {
         text: '测试异常BUG(2)',
         name: 'testBug2',
       },
-    ] : [],
+    ],
     bottomVertical: true,
     width: 560,
   }).then((res) => {