- 添加 GlobalExceptionHandler 全局异常处理 - 添加 ApiController REST API 控制器 - 更新 WebConfig 跨域配置和 ProductRepository 查询方法 - 新增 monitor/product-detail/profile JSP 视图页面 - 添加 FlashSaleServiceTest 秒杀服务单元测试 - 更新 application.yml 配置
27 lines
621 B
TypeScript
27 lines
621 B
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import ElementPlus from 'element-plus'
|
|
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'
|
|
|
|
// 全局样式
|
|
import 'element-plus/dist/index.css'
|
|
import './styles/index.scss'
|
|
|
|
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') |