- 移除手动导入的 Vue 和 Element Plus 相关模块 - 集成 unplugin-auto-import 插件实现自动导入 - 集成 unplugin-vue-components 插件实现组件自动注册 - 添加自动生成的类型声明文件 auto-imports.d.ts 和 components.d.ts - 配置 Element Plus 解析器支持按需导入 - 更新 tsconfig.app.json 包含自动生成的类型文件
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import {onMounted, onUnmounted, ref, watch} from 'vue'
|
||||
import {useCounterStore} from "@/stores/counter.ts"
|
||||
import api from "@/api"
|
||||
import {ElMessage, ElMessageBox} from 'element-plus'
|
||||
import {DataAnalysis, Delete, Document, InfoFilled, Key, Refresh, Search, Warning} from '@element-plus/icons-vue'
|
||||
|
||||
const store = useCounterStore()
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref} from "vue"
|
||||
import api from "@/api"
|
||||
import {ElMessage} from 'element-plus'
|
||||
import {useCounterStore} from "@/stores/counter.ts"
|
||||
import {useRouter} from "vue-router"
|
||||
import {Delete, Edit, Key, Lock, Memo, Plus, View} from '@element-plus/icons-vue'
|
||||
import AddDataDialog from '@/components/AddDataDialog.vue'
|
||||
|
||||
const store = useCounterStore()
|
||||
const router = useRouter()
|
||||
|
||||
Reference in New Issue
Block a user