mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
升级Vue3,iView替换ElementPlus
- 删除babel配置、更新依赖与入口初始化 - 全量替换UI组件、样式适配,新增迁移文档与标签/过滤器自动化替换脚本
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user