邓洁: 修复bug

This commit is contained in:
邓洁
2023-12-28 23:00:52 +08:00
parent 50270cddd3
commit 6dde5ccbc8
11 changed files with 274 additions and 111 deletions

View File

@@ -51,6 +51,7 @@ import {ElMessage} from "element-plus";
const router = useRouter();
const tunnelId = reactive(router.currentRoute.value.params.tunnelId)
const userId = reactive(router.currentRoute.value.params.userId)
const type = reactive(router.currentRoute.value.params.type)
const store = useModelSceneStore();
const form = ref({
@@ -77,7 +78,7 @@ const handleGotoDevice = () => {
router.push('/device/' + tunnelId)
}
const handleGoTunnelMgr=()=>{
router.push('/tunnel/' + form.value.siteId+'/'+type)
router.push('/tunnel/' + form.value.siteId+'/'+type+'/'+userId)
}
const handleSave = async () => {
const data = {
@@ -94,7 +95,7 @@ const handleSave = async () => {
editTunnel(data).then((res) => {
if (res?.code === 1000) {
ElMessage.success(res.msg)
router.push('/tunnel/' + form.value.siteId+'/'+type)
router.push('/tunnel/' + form.value.siteId+'/'+type+'/'+userId)
}
});
}