pull/167/head
parent
52e677cc62
commit
54a12cd406
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue