From 623859790a3f074c103c792e5eaca33b199dbb91 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期二, 06 八月 2024 15:14:41 +0800 Subject: [PATCH] update 花店端的一些细节功能、打印的、合伙人推广二维码的 --- plugins/http.js | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/plugins/http.js b/plugins/http.js index e2b5096..4606465 100644 --- a/plugins/http.js +++ b/plugins/http.js @@ -134,7 +134,7 @@ // store.dispatch('/clearUserInfo') // commit('updat') // store.commit('updateLogin', false) - console.log('401',res) + console.log('401', res) message.showToast('登录信息失效') storage.removeItem('token') reject({ @@ -160,6 +160,13 @@ code: 403, msg: 'Forbidden' }) + } else if (res.statusCode === 429) { + message.showToast('系统操作太频繁,请稍后再试!') + reject({ + data: null, + code: 429, + msg: 'Forbidden' + }) } else if (res.statusCode === 404) { message.showToast('api不存在') reject({ -- Gitblit v1.9.3