瀏覽代碼

视频直播修复

李富豪 1 年之前
父節點
當前提交
9be564f302

+ 1 - 1
Web/index.html

@@ -6,7 +6,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="icon" href="/src/assets/public/favicon.ico" />
   <title>上云无人机管理平台</title>
-  <script type="text/javascript" src="/src/components/easyPlayer/depend/EasyPlayer-element.min.js"></script>
+  <script type="text/javascript" src="EasyPlayer-element.min.js"></script>
 </head>
 
 <body>

文件差異過大導致無法顯示
+ 138 - 138
Web/package-lock.json


文件差異過大導致無法顯示
+ 11 - 503
Web/public/EasyPlayer-element.min.js


+ 0 - 0
Web/src/components/easyPlayer/depend/EasyPlayer.wasm → Web/public/EasyPlayer.wasm


+ 2 - 1
Web/src/pages/page-web/projects/trajectory/index.vue

@@ -23,6 +23,7 @@ import Search from './components/Search.vue';
 import { apis } from '/@/api/custom/index';
 import router from '/@/router';
 import { useMyStore } from '/@/store';
+import { wgs84togcj02 } from '/@/vendors/coordtransform'
 
 const store = useMyStore()
 
@@ -161,7 +162,7 @@ const onClickLookTrajectory = async (id: string) => {
   router.push({ path: '/workspace' });
   const res = await apis.fetchTrajectoryMap(id);
   const list = res.data.map((item: any) => {
-    return [item.longitude, item.latitude]
+    return wgs84togcj02(item.longitude, item.latitude);
   });
   store.commit('SET_TRAJECTORY_LIST', list)
 }

+ 7 - 0
Web/vite.config.ts

@@ -53,6 +53,13 @@ export default defineConfig(({ mode, command }) => {
       sourcemap: false,// 构建后不生成源代码
       write: true,// 构建的文件写入磁盘
       chunkSizeWarningLimit: 10240,// 触发警告的chunk大小10M
+      // 底层配置
+      rollupOptions: {
+        output: {
+          entryFileNames: 'js/[name]-[hash].js',
+          chunkFileNames: 'js/[name]-[hash].js',
+        }
+      },
     },
     esbuild: {
       drop: command === 'build' ? ['console', 'debugger'] : [],

部分文件因文件數量過多而無法顯示