Commit d97de990 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 66652be9 aa92220f
......@@ -2,3 +2,4 @@
NODE_ENV = "production"
VUE_APP_API_BASE_URL=/basics_api
VUE_APP_API_portal_URL=/portal_home
VUE_APP_API_IMG_URL = ""
\ No newline at end of file
......@@ -376,13 +376,29 @@ export default {
this.$refs.addsite.onEdit(data);
},
// 同步数据
async handleSync(id) {
handleSync(id) {
let _this = this;
this.$confirm({
title: "系统提示",
content: "确定要同步更新站点数据吗?",
okText: "确定",
okType: "primary",
cancelText: "取消",
centered: true,
maskClosable: true,
icon: "question",
async onOk() {
let res = await SyncSiteData({ id });
let { code, msg } = res.data;
if (code == 1) {
this.$message.success(msg);
_this.$message.success(msg);
}
},
onCancel() {
console.log("Cancel");
},
});
},
},
};
</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