为编辑新闻页面添加路由别名

This commit is contained in:
高子兴 2024-07-04 16:47:27 +08:00
parent 3fa9984464
commit ef793edd6b

View File

@ -5,7 +5,7 @@ import EditNews from "@views/news-management/EditNews.vue";
export default [
{ path: '/news', component: NewsList },
{ path: '/news/edit', component: EditNews },
{ path: '/news/edit', component: EditNews, name: 'editNews' },
// { path: '/news/:id', component: NewsDetail },
// { path: '/news/:id/edit', component: NewsEdit }
]