refactor: remove unused files, bug fixes and name changes

This commit is contained in:
Hansen Wang
2023-04-24 02:09:39 +08:00
parent e1528823f7
commit 5d891c1f44
32 changed files with 352 additions and 417 deletions

View File

@@ -1,8 +1,8 @@
import type { AppRouteRecordRaw } from '@/router/types';
import { ErrorPage, RedirectName, Layout } from '@/router/constant';
import { RouteRecordRaw } from 'vue-router';
// 404 on a page
export const ErrorPageRoute: AppRouteRecordRaw = {
export const ErrorPageRoute: RouteRecordRaw = {
path: '/:path(.*)*',
name: 'ErrorPage',
component: Layout,
@@ -23,7 +23,7 @@ export const ErrorPageRoute: AppRouteRecordRaw = {
],
};
export const RedirectRoute: AppRouteRecordRaw = {
export const RedirectRoute: RouteRecordRaw = {
path: '/redirect',
name: RedirectName,
component: Layout,