1bce12927e
统一全部页面视觉风格:绿色主色调(#4caf50)、暖象牙白背景(#faf8f5)、 圆角柔和阴影、Element Plus 组件主题覆盖。新增 CSS 设计令牌文件 tokens.css,重写 16 个 Vue 文件的 scoped 样式。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
585 B
JavaScript
21 lines
585 B
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import './assets/styles/tokens.css'
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
|
|
const app = createApp(App)
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.use(createPinia())
|
|
app.use(router)
|
|
app.use(ElementPlus, { locale: zhCn })
|
|
app.mount('#app')
|