index.vue 814 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. 线索一张图
  3. </template>
  4. <script lang="ts">
  5. import {
  6. defineComponent,
  7. computed,
  8. onMounted,
  9. ref,
  10. reactive,
  11. watch,
  12. getCurrentInstance,
  13. ComponentInternalInstance,
  14. toRefs,
  15. nextTick
  16. } from 'vue'
  17. import {useStore} from 'vuex'
  18. import {useRouter, useRoute} from 'vue-router'
  19. import {ElMessage, ElMessageBox} from "element-plus";
  20. export default defineComponent({
  21. name: '',
  22. components: {},
  23. props: {},
  24. setup(props, {emit}) {
  25. const store = useStore();
  26. const router = useRouter();
  27. const route = useRoute();
  28. const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
  29. const state = reactive({})
  30. onMounted(() => {
  31. })
  32. return {
  33. ...toRefs(state),
  34. }
  35. },
  36. })
  37. </script>
  38. <style scoped lang="scss">
  39. </style>