pull/167/head
parent
52e677cc62
commit
54a12cd406
|
@ -14,7 +14,7 @@ function sendGetRequest(url, data) {
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
.then(function (res) { //请求成功,response接收返回参数
|
.then(function (res) { //请求成功,response接收返回参数
|
||||||
if (res.data.code == 403) {
|
if (res.data.code == 401) {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('token')
|
||||||
router.push({
|
router.push({
|
||||||
name: 'login'
|
name: 'login'
|
||||||
|
@ -41,7 +41,7 @@ function sendUploadRequest(url, data) {
|
||||||
}
|
}
|
||||||
}).then(
|
}).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.data.code == 403) {
|
if (res.data.code == 401) {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('token')
|
||||||
router.push({
|
router.push({
|
||||||
name: 'login'
|
name: 'login'
|
||||||
|
|
Loading…
Reference in New Issue