From a114b35c1abcc5eb3b53c497ab689f9eb138deb7 Mon Sep 17 00:00:00 2001 From: PuerNya Date: Wed, 30 Aug 2023 16:05:13 +0800 Subject: [PATCH] feat: redirect illegal path to overview (#41) --- src/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 6c61cd5..4ce1b3f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,4 @@ -import { Route, Routes, useNavigate } from '@solidjs/router' +import { Navigate, Route, Routes, useNavigate } from '@solidjs/router' import { Show, lazy, onMount } from 'solid-js' import { Header } from '~/components/Header' import { curTheme, selectedEndpoint } from '~/signals' @@ -30,12 +30,13 @@ export const App = () => {
+ - + } />