maliang 4 hete
szülő
commit
f86283746d
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      App.vue
  2. 1 1
      pages/index/index.vue

+ 1 - 1
App.vue

@@ -8,7 +8,7 @@ export default {
 		uni.setStorageSync('downloadApkParams', null);
 		console.log('onLaunch')
 		// 检测客户端更新
-		// this.$store.dispatch('update/update', 0)
+		this.$store.dispatch('update/update', 0)
 	},
 	onShow() {
 		// #ifdef APP-PLUS

+ 1 - 1
pages/index/index.vue

@@ -111,7 +111,7 @@
 		},
 		methods: {
 			toUpdate() {
-				const params = this.$store.state.downloadApkParams
+				const params = this.$store.state.update.downloadApkParams
 				const url = this.$BASE_URL + '/pda/downloadApk'
 				downloadApkWithJsonPost(url, params)
 			},