部署开发环境 / deploy-dev (push) Successful in 1m32s
- 将 Element Plus 相关导入语句注释掉 - 更新 axios 从 1.16.1 到 1.19.0 版本 - 更新 element-plus 从 2.14.1 到 2.14.4 版本 - 更新 vue 从 3.5.35 到 3.5.41 版本 - 更新 vue-router 从 5.1.0 到 5.2.0 版本 - 更新 @tailwindcss/vite 和 tailwindcss 至 4.3.3 版本 - 更新 pinia 从 3.0.4 到 4.0.3 版本 - 更新 devDependencies 中多个开发工具包版本 - 在类型声明文件中添加 oxlint 和 oxfmt 的忽略注释
29 lines
655 B
TypeScript
29 lines
655 B
TypeScript
import {createApp} from 'vue'
|
|
import {createPinia} from 'pinia'
|
|
import persistedState from 'pinia-plugin-persistedstate';
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
// import ElementPlus from 'element-plus'
|
|
// import 'element-plus/dist/index.css'
|
|
import './assets/main.css'
|
|
|
|
const pinia = createPinia()
|
|
pinia.use(persistedState)
|
|
|
|
const app = createApp(App)
|
|
app.use(pinia)
|
|
app.use(router)
|
|
// app.use(ElementPlus)
|
|
app.mount('#app')
|
|
|
|
|
|
router.beforeEach((to, from) => {
|
|
var postfix: string = ''
|
|
if (import.meta.env.DEV) {
|
|
postfix = '-dev'
|
|
}
|
|
|
|
if (to.meta.title) {
|
|
document.title = to.meta.title + postfix
|
|
}
|
|
}) |