mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 17:05:54 +08:00
bug修改
This commit is contained in:
@@ -69,14 +69,6 @@ service.interceptors.response.use(
|
||||
router.push("/login");
|
||||
}
|
||||
break;
|
||||
case 403:
|
||||
// 权限不足
|
||||
if (data.message !== null) {
|
||||
Message.error(data.message);
|
||||
} else {
|
||||
Message.error("权限不足");
|
||||
}
|
||||
break;
|
||||
case 500:
|
||||
// 系统异常
|
||||
if (data.message !== null) {
|
||||
@@ -94,6 +86,8 @@ service.interceptors.response.use(
|
||||
if (error.response) {
|
||||
if (error.response.status === 401) {
|
||||
// 这种情况一般调到登录页
|
||||
} else if (error.response.status === 404) {
|
||||
// 避免刷新token报错
|
||||
} else if (error.response.status === 403) {
|
||||
isRefreshToken++;
|
||||
if (isRefreshToken === 1) {
|
||||
|
||||
@@ -54,20 +54,20 @@ export const result = [
|
||||
children: null,
|
||||
permTypes: []
|
||||
},
|
||||
{
|
||||
name: "daft-goods",
|
||||
showAlways: true,
|
||||
level: 2,
|
||||
type: 0,
|
||||
title: "草稿商品",
|
||||
path: "daft-goods",
|
||||
component: "goods/goods-seller/draftGoods",
|
||||
icon: "md-person",
|
||||
isMenu: true,
|
||||
url: "",
|
||||
children: null,
|
||||
permTypes: []
|
||||
},
|
||||
// {
|
||||
// name: "daft-goods",
|
||||
// showAlways: true,
|
||||
// level: 2,
|
||||
// type: 0,
|
||||
// title: "草稿商品",
|
||||
// path: "daft-goods",
|
||||
// component: "goods/goods-seller/draftGoods",
|
||||
// icon: "md-person",
|
||||
// isMenu: true,
|
||||
// url: "",
|
||||
// children: null,
|
||||
// permTypes: []
|
||||
// },
|
||||
|
||||
{
|
||||
path: "template-goods",
|
||||
|
||||
Reference in New Issue
Block a user