文字修改

main
许宏杰 1 week ago
parent 799d453d1c
commit 3055f6c3f1

@ -1,4 +1,4 @@
import { createWebHistory, createRouter } from 'vue-router' import { createWebHashHistory, createRouter } from 'vue-router'
/* Layout */ /* Layout */
import Layout from '@/layout' import Layout from '@/layout'
@ -166,7 +166,7 @@ export const dynamicRoutes = [
] ]
const router = createRouter({ const router = createRouter({
history: createWebHistory(), history: createWebHashHistory(),
routes: constantRoutes, routes: constantRoutes,
scrollBehavior(to, from, savedPosition) { scrollBehavior(to, from, savedPosition) {
if (savedPosition) { if (savedPosition) {

@ -9,15 +9,15 @@
<div class="uav-model"> <div class="uav-model">
<div class="uav-model3d"> <div class="uav-model3d">
<vue3dLoader <vue3dLoader
:width="200" :width="200"
:height="200" :height="200"
:showFps="false" :showFps="false"
filePath="https://data.mars3d.cn/gltf/mars/wrj.glb" filePath="https://data.mars3d.cn/gltf/mars/wrj.glb"
:backgroundAlpha="0" :backgroundAlpha="0"
@load="onLoad()" @load="onLoad()"
:lights="lights" :lights="lights"
:cameraPosition="{ x: 1500, y:1000, z: 500}" :cameraPosition="{ x: 1500, y: 1000, z: 500 }"
:rotation="rotation" :rotation="rotation"
></vue3dLoader> ></vue3dLoader>
</div> </div>
<div class="model-bg"></div> <div class="model-bg"></div>
@ -71,18 +71,18 @@
<div class="contain-grid"> <div class="contain-grid">
<div class="grid-item"> <div class="grid-item">
<div class="grid-item-content"> <div class="grid-item-content">
{{ uavStore.params.lat.toFixed(3) }} {{ uavStore.params.lng.toFixed(3) }}
</div> </div>
<div class="grid-item-footer"> <div class="grid-item-footer">
<span class="unit-name">(°)</span> <span class="unit-name">(°)</span>
</div> </div>
</div> </div>
<div class="grid-item"> <div class="grid-item">
<div class="grid-item-content"> <div class="grid-item-content">
{{ uavStore.params.lng.toFixed(3) }} {{ uavStore.params.lat.toFixed(3) }}
</div> </div>
<div class="grid-item-footer"> <div class="grid-item-footer">
<span class="unit-name">(°)</span> <span class="unit-name">(°)</span>
</div> </div>
</div> </div>
<div class="grid-item"> <div class="grid-item">
@ -145,7 +145,6 @@ lights.value = [
type: "AmbientLight", type: "AmbientLight",
color: "#fff", color: "#fff",
}, },
]; ];
const rotation = reactive({ const rotation = reactive({
x: 0, x: 0,
@ -161,9 +160,6 @@ function rotate() {
requestAnimationFrame(rotate); requestAnimationFrame(rotate);
rotation.y -= 0.01; rotation.y -= 0.01;
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

@ -6,7 +6,7 @@
<div class="introduce-image"></div> <div class="introduce-image"></div>
</div> </div>
<div class="introduce-text"> <div class="introduce-text">
借助新质生产力赋能城市治理利用无人机可垂直起降可悬停操作灵活可任意方向飞行的特性快速发现问题快速解决问题让城市治 借助新质生产力赋能城市治理利用无人机可垂直起降可悬停操作灵活可任意方向飞行的特性快速发现问题快速解决问题让城市治理更立体
</div> </div>
</div> </div>
<div class="introduce-cell"> <div class="introduce-cell">
@ -81,7 +81,7 @@ const list = [
{ name: "违章搭建场景应用", className: "item2" }, { name: "违章搭建场景应用", className: "item2" },
{ name: "应急救灾场景应用", className: "item3" }, { name: "应急救灾场景应用", className: "item3" },
{ name: "森林防火场景应用", className: "item4" }, { name: "森林防火场景应用", className: "item4" },
{ name: "林值保场景应用", className: "item5" }, { name: "林值保场景应用", className: "item5" },
{ name: "测绘勘察场景应用", className: "item6" }, { name: "测绘勘察场景应用", className: "item6" },
]; ];
</script> </script>

@ -25,7 +25,7 @@ export default defineConfig(({ mode, command }) => {
}, },
// vite 相关配置 // vite 相关配置
server: { server: {
port: 80, port: 8081,
host: true, host: true,
open: true, open: true,
proxy: { proxy: {

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save