单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-09-19 e66f81b28cdec15e53037d0f26e530270ac3db54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import 'amfe-flexible';
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'   
import Vant from 'vant'
import 'vant/lib/index.css' 
import './style.css'
import router from './router';
import App from './App.vue'
import VConsole from 'vconsole'
import { createPinia } from 'pinia'
import '@/assets/css/iconfont.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
 
if (import.meta.env.VITE_ENV === 'development') {
// 如果需要在手机平板上打开控制台,安装一个这个
    const vConsole = new VConsole()
}
const pinia = createPinia()
 
const app = createApp(App)
 
app.use(router).use(pinia).use(ElementPlus, { locale: zhCn }).use(Vant).mount('#app')