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

perf: 优化刷新资源操作

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