From 0082fa417fb2af9add3406bf05ab3e3e45890c34 Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Thu, 12 Jun 2025 14:30:02 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/drone-web-manage
---
src/main.js | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/main.js b/src/main.js
index 8a010d5..e24d589 100644
--- a/src/main.js
+++ b/src/main.js
@@ -4,9 +4,9 @@
* @LastEditors: shuishen 1109946754@qq.com
* @LastEditTime: 2025-04-10 12:19:47
* @FilePath: \drone-web-manage\src\main.js
- * @Description:
- *
- * Copyright (c) 2025 by shuishen, All Rights Reserved.
+ * @Description:
+ *
+ * Copyright (c) 2025 by shuishen, All Rights Reserved.
*/
import { createApp } from 'vue'
import website from './config/website'
@@ -37,15 +37,21 @@
import 'animate.css'
import dayjs from 'dayjs'
import 'styles/common.scss'
+import * as Cesium from 'cesium'
+
// 业务组件
import tenantPackage from './views/system/tenantpackage.vue'
-
// 地图依赖
import mapContainer from './components/map-container/mapContainer.vue'
import * as DC from '@dvgis/dc-sdk'
import '@dvgis/dc-sdk/dist/dc.min.css'
window.DC = Object.create(DC)
+import { onResize } from '@/utils/rem'
+onResize()
+const { VITE_APP_BASE,VITE_APP_CESIUM_TOKEN } = import.meta.env
+window.CESIUM_BASE_URL = `${VITE_APP_BASE}/cesiumPu`
+Cesium.Ion.defaultAccessToken = VITE_APP_CESIUM_TOKEN
// 获取url中是否存在token
const urlParams = getUrlParams(window.location.href)
@@ -58,6 +64,7 @@
// 设置用户信息,把大屏用户信息保存到localStorage
let obj = {}
obj = localStorage.getItem("bs_userInfo")
+ obj = obj ? obj : localStorage.getItem("saber-userInfo")
if (obj instanceof Object) {
obj = obj.content
} else {
--
Gitblit v1.9.3