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

perf:优化无操作权限提示

parent 8c2fabbd
......@@ -85,8 +85,6 @@ export default {
// console.log(this.menuListData);
// console.log(this.menuTreeData);
// this.getMenuDict(); //弃用
} else {
this.$message.error(res.msg);
}
});
},
......
......@@ -38,7 +38,7 @@ axios.interceptors.response.use(
if (response.data.code !== undefined && response.data.msg !== undefined) {
// 取出数据
let { code, msg } = response.data;
if (code === -1) {
if (code === -1 || code === 405) {
message.error({
content: msg,
maxCount: 1,
......
......@@ -212,6 +212,7 @@ export default {
page: this.tablePagination.current,
size: -1,
});
if (res.code != 1) return;
let { data, total, dict } = res.data;
let { menuType } = dict;
this.tablePagination.total = total;
......@@ -410,4 +411,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
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