diff --git a/src/views/index.vue b/src/views/index.vue index 3e7e410..6f9044e 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -5,6 +5,7 @@ + 管理 @@ -21,6 +22,7 @@ import { addShildData, delShildData, StartWork, StopWork, RestartWork, ShutDownWork, getAllAirPort, getArea, GetAllCData } from "@/api/api"; +import {useRouter} from "vue-router"; const scaleRatio = ref(window.innerWidth / 1080) const onSubmit = (e) => { @@ -553,6 +555,10 @@ const RIGHT = defineComponent({ } }) +const router = useRouter(); +const toAdmin = () => { + router.push('/serve') +} // setTimeout(() => { // setZoom({lon: 120.0005, lat: 30.005}, 2) // }, 30000)