邓洁: 隧道接口部分对接

This commit is contained in:
邓洁
2023-12-26 09:41:44 +08:00
parent 9afb0f7f28
commit b1fde92bbd
5 changed files with 122 additions and 51 deletions

View File

@@ -170,7 +170,6 @@ const getList = () => {
})
siteList.value = res.data.rows;
console.log('res',siteList.value)
});
}
getList()
@@ -223,14 +222,16 @@ const handleSubmit = (instance) => {
instance.validate(async (valid) => {
if (!valid) return
if (title.value === '编辑站点') {
editSite(form.value).then(() => {
editSite(form.value).then((res) => {
isVisited.value = false
getList()
ElMessage.success(res.msg)
});
} else {
addSite(form.value).then(() => {
addSite(form.value).then((res) => {
isVisited.value = false
getList()
ElMessage.success(res.msg)
});
}
})