升级Vue3,iView替换ElementPlus

- 删除babel配置、更新依赖与入口初始化
- 全量替换UI组件、样式适配,新增迁移文档与标签/过滤器自动化替换脚本
This commit is contained in:
lifenlong
2026-06-05 17:49:43 +08:00
parent 615ee91511
commit 832fda813b
322 changed files with 25693 additions and 24453 deletions

View File

@@ -1,44 +1,38 @@
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const RouteView = {
name: 'RouteView',
render: h => h('router-view'),
}
import { createRouter, createWebHistory } from "vue-router";
const routes = [
{
path: '/',
name: 'home',
component: () => import('@/views/message/index'),
meta: {
title: '',
needLogin: true,
},
{
path: "/",
name: "home",
component: () => import("@/views/message/index"),
meta: {
title: "",
needLogin: true,
},
{
path: '/message',
name: 'message',
component: () => import('@/views/message/index'),
meta: {
title: '消息通知',
needLogin: true,
},
},
{
path: "/message",
name: "message",
component: () => import("@/views/message/index"),
meta: {
title: "消息通知",
needLogin: true,
},
{
path: '*',
name: '404 NotFound',
component: () => import('@/views/other/404'),
meta: {
title: '404 NotFound',
needLogin: false,
},
},
{
path: "/:pathMatch(.*)*",
name: "404 NotFound",
component: () => import("@/views/other/404"),
meta: {
title: "404 NotFound",
needLogin: false,
},
]
},
];
export default new Router({
routes,
mode: 'history',
})
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;