Commit fd01086a authored by “yiyousong”'s avatar “yiyousong”

perf:优化无操作权限提示

parent 8c2fabbd
...@@ -85,8 +85,6 @@ export default { ...@@ -85,8 +85,6 @@ export default {
// console.log(this.menuListData); // console.log(this.menuListData);
// console.log(this.menuTreeData); // console.log(this.menuTreeData);
// this.getMenuDict(); //弃用 // this.getMenuDict(); //弃用
} else {
this.$message.error(res.msg);
} }
}); });
}, },
......
...@@ -38,7 +38,7 @@ axios.interceptors.response.use( ...@@ -38,7 +38,7 @@ axios.interceptors.response.use(
if (response.data.code !== undefined && response.data.msg !== undefined) { if (response.data.code !== undefined && response.data.msg !== undefined) {
// 取出数据 // 取出数据
let { code, msg } = response.data; let { code, msg } = response.data;
if (code === -1) { if (code === -1 || code === 405) {
message.error({ message.error({
content: msg, content: msg,
maxCount: 1, maxCount: 1,
......
...@@ -212,6 +212,7 @@ export default { ...@@ -212,6 +212,7 @@ export default {
page: this.tablePagination.current, page: this.tablePagination.current,
size: -1, size: -1,
}); });
if (res.code != 1) return;
let { data, total, dict } = res.data; let { data, total, dict } = res.data;
let { menuType } = dict; let { menuType } = dict;
this.tablePagination.total = total; this.tablePagination.total = total;
...@@ -410,4 +411,4 @@ export default { ...@@ -410,4 +411,4 @@ export default {
} }
} }
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment