// src/main.ts import { createApp } from 'vue' import App from './App.vue' import router from './router' // 新增 import { createPinia } from 'pinia' import Antd from 'ant-design-vue' import 'ant-design-vue/dist/reset.css' const app = createApp(App) app.use(createPinia()) // 注册Pinia app.use(router) // 注册路由 app.use(Antd) // 注册Ant Design Vue app.mount('#app')