refactor: 引入 unplugin-auto-import,减少重复性 Vue 函数引入

避免在每个 Vue 组件中都重复性的去声明 ref 等函数
This commit is contained in:
2024-01-07 23:54:43 +08:00
parent b2aa7114bc
commit b56f029e68
55 changed files with 302 additions and 63 deletions

View File

@@ -5,8 +5,6 @@
</template>
<script setup lang="ts">
import { getCurrentInstance, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useUserStore } from '@/store';
import { useI18n } from 'vue-i18n';
import { isLogin } from '@/utils/auth';