ZaiZai hace 1 año
padre
commit
0214c0fe6b
Se han modificado 2 ficheros con 8 adiciones y 3 borrados
  1. 2 2
      manifest.json
  2. 6 1
      pages/my/config.vue

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "数字工程",
     "appid" : "__UNI__A0B807E",
     "description" : "",
-    "versionName" : "1.1.9",
-    "versionCode" : 119,
+    "versionName" : "1.2.0",
+    "versionCode" : 120,
     "transformPx" : false,
     "networkTimeout" : {
         "request" : 300000,

+ 6 - 1
pages/my/config.vue

@@ -26,7 +26,7 @@
                 </view>
                 <view class="action text-gray-5">v{{appInfo.appVersion}}</view>
             </view>
-            <view class="cu-item">
+            <view class="cu-item" @click="detectUpgrades">
                 <view class="content hc-flex">
                     <text class="i-ri-rocket-fill text-cyan text-32 mr-1"/>
                     <text class="text-gray-4">检测升级</text>
@@ -82,4 +82,9 @@ const fillSwitchChange = ({detail}) => {
     })
     appCheck.value = detail.value
 }
+
+//检测升级
+const detectUpgrades = () => {
+    store.setOnUpdate(new Date().getTime())
+}
 </script>