邓洁: 修改细节
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user