邓洁: 修改细节

This commit is contained in:
邓洁
2024-01-12 14:51:06 +08:00
parent 2926e46351
commit 9b5ca77651
5 changed files with 58 additions and 51 deletions

View File

@@ -205,9 +205,9 @@ onMounted(() => {
showOperation.value = localStorage.getItem('roleKey') !== 'tunnel_admin';
})
const handleGoSiteOrIndex = () => {
if (type === 's') {
if (type === 'bySite') {
router.push('/site/' + userId)
} else if (type === 'i') {
} else if (type === 'byHome') {
router.push('/')
}
}
@@ -267,10 +267,10 @@ const handlePreview = (id) => {
}
const handleGoToEditTunnel = (tunnelId) => {
isEdit.value = true
if (type === 's') {
router.push('/edit/' + tunnelId + '/s/' + userId)
} else if (type === 'i') {
router.push('/edit/' + tunnelId + '/i/' + userId)
if (type === 'bySite') {
router.push('/edit/' + tunnelId + '/bySite/' + userId)
} else if (type === 'byHome') {
router.push('/edit/' + tunnelId + '/byHome/' + userId)
}
}
const handleChooseAll = () => {
@@ -288,10 +288,10 @@ const handleChooseAll = () => {
})
}
const handleEditDevice = (tunnelId) => {
if (type === 's') {
router.push('/device/' + tunnelId + '/s/' + userId)
} else if (type === 'i') {
router.push('/device/' + tunnelId + '/i/' + userId)
if (type === 'bySite') {
router.push('/device/' + tunnelId + '/bySite/' + userId)
} else if (type === 'byHome') {
router.push('/device/' + tunnelId + '/byHome/' + userId)
}
}
const restFrom = () => {