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

perf: 优化刷新资源操作

parent 49404741
......@@ -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