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 { BlankLayout } from '@/layouts';
import Website from '@/views/website/index.vue';
import { Website } from '@/views';
import { getRouteConst, routeName } from '../constant';
const { name, path, title } = getRouteConst('website');
const WEBSITE: RouteRecordRaw = setSingleRoute({
const website: RouteRecordRaw = setSingleRoute({
route: {
name,
path,
@ -25,4 +25,4 @@ const WEBSITE: RouteRecordRaw = setSingleRoute({
notFoundName: routeName('not-found')
});
export default WEBSITE;
export default website;