From d40ce3a49293ba94cab2fd07646da7d77a160fa5 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Mon, 9 Sep 2024 10:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/store.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/store/store.js b/store/store.js index 4738aba..5183259 100644 --- a/store/store.js +++ b/store/store.js @@ -37,6 +37,9 @@ const store = new Vuex.Store({ }) }, login(state) { + uni.showLoading({ + title: '登录中...' + }) uni.login({ success(res) { if (res.errMsg != "login:ok") { @@ -45,6 +48,9 @@ const store = new Vuex.Store({ api('loginLogin', { code: res.code }, res => { + + uni.hideLoading() + if (res.code != 200) { return }