Browse Source

清除启动参数

xiaohaizhao 1 year ago
parent
commit
73e122d44d
1 changed files with 4 additions and 5 deletions
  1. 4 5
      pages/index/index.vue

+ 4 - 5
pages/index/index.vue

@@ -72,7 +72,6 @@ export default {
 					break;
 			}
 		}
-
 	},
 	onShow() {
 		this.isInitializeLogin(render.bind(this))
@@ -131,8 +130,8 @@ export default {
 									content: s.msg == '成功' ? '绑定成功' : s.msg,
 									showCancel: false,
 									success: function () {
-										that.$Login.wechatLogin().then(() => uni.reLaunch({
-											url: '/pages/index/index'
+										if (s.msg == '成功') that.$Login.wechatLogin().then(() => uni.reLaunch({
+											url: '/pages/index/index?q=""'
 										}))
 									}
 								});
@@ -162,8 +161,8 @@ export default {
 							content: s.msg == '成功' ? '绑定成功' : s.msg,
 							showCancel: false,
 							success: function () {
-								that.$Login.wechatLogin().then(() => uni.reLaunch({
-									url: '/pages/index/index'
+								if (s.msg == '成功') that.$Login.wechatLogin().then(() => uni.reLaunch({
+									url: '/pages/index/index?q=""'
 								}))
 							}
 						});