Commit 92f43a9c authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents d4642e9d dbad035a
......@@ -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>
......@@ -251,11 +251,21 @@ export default {
},
// 刷新资源
async refSresource() {
let res = await refreshUrl();
if (res.code == 1) {
this.$message.success(res.msg);
this.getResourceList();
}
let _this = this;
this.$confirm({
title: "系统提示",
content: "确定要刷新资源吗?",
okText: "",
cancelText: "",
centered: true,
async onOk() {
let res = await refreshUrl();
if (res.code == 1) {
_this.$message.success(res.msg);
_this.getResourceList();
}
},
});
},
},
};
......
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