mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 20:59:18 +00:00
refactor: optimize the router system and implement unit tests for router (#495)
This commit is contained in:
@@ -14,13 +14,18 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import type { AppRouteRecordRaw } from "@/types/router";
|
||||
import { ROUTE_NAMES, ROUTE_PATHS } from "./constants";
|
||||
import NotFound from "@/views/NotFound.vue";
|
||||
|
||||
export const routesNotFound: Array<RouteRecordRaw> = [
|
||||
export const routesNotFound: AppRouteRecordRaw[] = [
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
name: "NotFound",
|
||||
path: ROUTE_PATHS.NOT_FOUND,
|
||||
name: ROUTE_NAMES.NOT_FOUND,
|
||||
component: NotFound,
|
||||
meta: {
|
||||
title: "Page Not Found",
|
||||
notShow: true,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user