/** 必须与 `import { … } from 'bootstrap'` 使用同一文件(package.module = bootstrap.esm.js),否则两套运行时重复注册 Data API,下拉会打开即被第二次 toggle 关掉 */ import 'bootstrap/dist/js/bootstrap.esm.js' import { createApp } from 'vue' import { createPinia } from 'pinia' import ElementPlus from 'element-plus' import zhCn from 'element-plus/es/locale/lang/zh-cn.mjs' import 'element-plus/dist/index.css' import './style.css' import App from './App.vue' import router from './router' const pinia = createPinia() createApp(App).use(pinia).use(router).use(ElementPlus, { locale: zhCn }).mount('#app')