From f1561e64c6b1f161b014ec3be26d968cfdb8be74 Mon Sep 17 00:00:00 2001 From: gaoxs Date: Mon, 11 May 2020 09:41:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ShareInfo.vue | 2 +- utils/index.js | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/components/ShareInfo.vue b/components/ShareInfo.vue index 93a4777..83a5bb4 100644 --- a/components/ShareInfo.vue +++ b/components/ShareInfo.vue @@ -1,7 +1,7 @@ diff --git a/utils/index.js b/utils/index.js index 547afb9..06e65b4 100644 --- a/utils/index.js +++ b/utils/index.js @@ -112,12 +112,14 @@ export const copyClipboard = (data) => { export const replaceLogin = (msg) => { uni.hideLoading(); - uni.showToast({ - title: msg, - icon: 'none', - duration: 2000 - }); - // 这里代表已经失去登录状态以及401强制推出登录了 + if (msg) { + uni.showToast({ + title: msg, + icon: 'none', + duration: 2000 + }); + } + // 这里代表已经失去登录状态以及401强制退出登录了 store.commit('LOGOUT') if (Vue.prototype.$deviceType == 'routine') { // 如果是微信小程序,跳转到授权页