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

perf: 优化刷新资源操作

parent 49404741
...@@ -251,11 +251,21 @@ export default { ...@@ -251,11 +251,21 @@ export default {
}, },
// 刷新资源 // 刷新资源
async refSresource() { async refSresource() {
let res = await refreshUrl(); let _this = this;
if (res.code == 1) { this.$confirm({
this.$message.success(res.msg); title: "系统提示",
this.getResourceList(); 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