pull/167/head
sunmeng 2024-08-27 09:35:55 +08:00
parent 52e677cc62
commit 54a12cd406
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ function sendGetRequest(url, data) {
params: data
})
.then(function (res) { //请求成功response接收返回参数
if (res.data.code == 403) {
if (res.data.code == 401) {
localStorage.removeItem('token')
router.push({
name: 'login'
@ -41,7 +41,7 @@ function sendUploadRequest(url, data) {
}
}).then(
(res) => {
if (res.data.code == 403) {
if (res.data.code == 401) {
localStorage.removeItem('token')
router.push({
name: 'login'