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') { // 如果是微信小程序,跳转到授权页