|
@@ -65,7 +65,7 @@ service.interceptors.response.use(
|
|
if (successCode.includes(code)) {
|
|
if (successCode.includes(code)) {
|
|
return res.data;
|
|
return res.data;
|
|
} else {
|
|
} else {
|
|
- if (code === 403) {
|
|
|
|
|
|
+ if (code === 401) {
|
|
ElMessageBox.confirm("请重新登录", {
|
|
ElMessageBox.confirm("请重新登录", {
|
|
confirmButtonText: "重新登录",
|
|
confirmButtonText: "重新登录",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|