<template> <h1>${COMPONENT_NAME}</h1> </template> <script lang="ts" setup> import {reactive} from 'vue'; import {useRouter} from "vue-router"; import {useStore} from "vuex"; import { log } from '@/utils/log' const {dispatch: $dispatch, commit: $commit, getters: $getters, state: $state} = useStore(); const router = useRouter(); const state = reactive({ }); </script> <style lang="scss" scoped> </style>
标签:const,webstorm,dispatch,state,vue3,import,useStore,模板 From: https://www.cnblogs.com/hello-dummy/p/16953769.html