28 lines
601 B
TypeScript
28 lines
601 B
TypeScript
// css和scss
|
|
import './assets/styles/global.scss'
|
|
import 'element-plus/dist/index.css'
|
|
|
|
//语言配置
|
|
import ElementPlus from 'element-plus'
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
|
|
|
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import {setupAuthDirective} from './directives/auth'
|
|
import { setStorage } from '@/utils/storage'
|
|
|
|
setStorage("one", "1")
|
|
|
|
const app = createApp(App)
|
|
setupAuthDirective(app)
|
|
app.use(createPinia())
|
|
app.use(router)
|
|
app.use(ElementPlus, {
|
|
locale: zhCn,
|
|
})
|
|
|
|
app.mount('#app')
|