mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 05:50:18 +08:00
refactor(projects): 优化路由导入页面写法,页面路由调整
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import { setSingleRoute } from '@/utils';
|
||||
import { BasicLayout } from '@/layouts';
|
||||
import About from '@/views/about/index.vue';
|
||||
import { About } from '@/views';
|
||||
import { getRouteConst, routeName } from '../constant';
|
||||
|
||||
const { name, path, title } = getRouteConst('about');
|
||||
|
||||
const ABOUT: RouteRecordRaw = setSingleRoute({
|
||||
const about: RouteRecordRaw = setSingleRoute({
|
||||
route: {
|
||||
name,
|
||||
path,
|
||||
@@ -26,4 +26,4 @@ const ABOUT: RouteRecordRaw = setSingleRoute({
|
||||
notFoundName: routeName('not-found')
|
||||
});
|
||||
|
||||
export default ABOUT;
|
||||
export default about;
|
||||
|
||||
Reference in New Issue
Block a user