邓洁: 隧道接口部分对接
This commit is contained in:
@@ -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)
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user