无人机管理后台前端(已迁走)
chenyao
2025-05-23 5411e2d06ce469df7d6933371c1176898e0ccb25
feat:跳转路径
2 files modified
7 ■■■■ changed files
src/main.js 2 ●●● patch | view | raw | blame | history
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue 5 ●●●● patch | view | raw | blame | history
src/main.js
@@ -49,7 +49,7 @@
window.DC = Object.create(DC)
const { VITE_APP_BASE,VITE_APP_CESIUM_TOKEN } = import.meta.env
window.CESIUM_BASE_URL = `${VITE_APP_BASE}cesiumPu`
window.CESIUM_BASE_URL = `${VITE_APP_BASE}/cesiumPu`
Cesium.Ion.defaultAccessToken = VITE_APP_CESIUM_TOKEN
// 获取url中是否存在token
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -174,7 +174,10 @@
        const targetPath = `/taskManage?id=${item.id}&batchNo=${item.batch_no}`
        window.open(`${adminUrl}?redirect=${encodeURIComponent(targetPath)}`, '_blank')
    } else {
        isShowDeviceJobDetails.value = true
        // isShowDeviceJobDetails.value = true
        const adminUrl = `${import.meta.env.VITE_APP_AREA_NAME}/command-center-dashboard/`
        const targetPath = `/taskManage?id=${item.id}&batchNo=${item.batch_no}`
        window.open(`${adminUrl}?redirect=${encodeURIComponent(targetPath)}`, '_blank')
    }
}