refactor(projects): 优化路由导入页面写法,页面路由调整

This commit is contained in:
Soybean
2021-11-28 12:19:00 +08:00
parent d683894beb
commit 0b10b5056e
36 changed files with 303 additions and 197 deletions

View File

@@ -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;