Explorar o código

清除启动参数

xiaohaizhao hai 1 ano
pai
achega
73e122d44d
Modificáronse 1 ficheiros con 4 adicións e 5 borrados
  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=""'
 								}))
 							}
 						});