index.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div>
  3. <el-button @click="$router.push('/mock-track')">模拟轨迹</el-button>
  4. <el-button @click="$router.push('/track-status')">船舶轨迹状态查询</el-button>
  5. <el-button @click="$router.push('/ais-test')">AIS测试</el-button>
  6. </div>
  7. </template>
  8. <script lang="ts">
  9. import {
  10. defineComponent,
  11. computed,
  12. onMounted,
  13. ref,
  14. reactive,
  15. watch,
  16. getCurrentInstance,
  17. ComponentInternalInstance,
  18. toRefs,
  19. nextTick
  20. } from 'vue'
  21. import {useStore} from 'vuex'
  22. import {useRouter, useRoute} from 'vue-router'
  23. import {ElMessage, ElMessageBox} from "element-plus";
  24. export default defineComponent({
  25. name: '',
  26. components: {},
  27. props: {},
  28. setup(props, {emit}) {
  29. const store = useStore();
  30. const router = useRouter();
  31. const route = useRoute();
  32. const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
  33. const state = reactive({})
  34. onMounted(() => {
  35. })
  36. return {
  37. ...toRefs(state),
  38. }
  39. },
  40. })
  41. </script>
  42. <style scoped lang="scss">
  43. </style>