瀏覽代碼

小优化

future 2 年之前
父節點
當前提交
e4b88f56d0
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      pages/login/login.vue

+ 6 - 4
pages/login/login.vue

@@ -54,11 +54,13 @@
 				let self = this
 				this.tools.request_login(self, this.phone_value, this.password_value, (success)=>{
 					if(success === true) {
-						uni.showToast({
-							title:'登录成功',
-							duration:2000
-						})
 						uni.navigateBack()
+						setTimeout(function() {
+							uni.showToast({
+								title:'登录成功',
+								duration:1000
+							})
+						}, 100);
 					}
 				})
 			}