|
@@ -7,11 +7,11 @@ import FPlatformEnum from '../utils/enum';
|
|
|
const DebugHomeRouterPage = () => {
|
|
|
const navigate = useNavigate();
|
|
|
|
|
|
- const [token, setToken] = useSessionStorage('token');
|
|
|
- const [username, setUsername] = useSessionStorage('username4Debug');
|
|
|
- const [password, setPassword] = useSessionStorage('password4Debug');
|
|
|
- const [courseCode, setCourseCode] = useSessionStorage('courseCode4Debug');
|
|
|
- const [keyword, setKeyword] = useSessionStorage('keyword4Debug');
|
|
|
+ const [token, setToken] = useSessionStorage('token', '');
|
|
|
+ const [username, setUsername] = useSessionStorage('username4Debug', '');
|
|
|
+ const [password, setPassword] = useSessionStorage('password4Debug', '');
|
|
|
+ const [courseCode, setCourseCode] = useSessionStorage('courseCode4Debug', '');
|
|
|
+ const [keyword, setKeyword] = useSessionStorage('keyword4Debug', '');
|
|
|
const [subsetTab, setSubsetTab] = useSessionStorage(
|
|
|
'subsetTab4Debug',
|
|
|
'course',
|
|
@@ -167,6 +167,7 @@ const DebugHomeRouterPage = () => {
|
|
|
<div className='w-[80%] flex flex-col justify-start items-start'>
|
|
|
{routes.map((route) => (
|
|
|
<button
|
|
|
+ key={route.path}
|
|
|
className='flex flex-row content-center items-center p-2 m-1 rounded border hover:bg-gray-100'
|
|
|
onClick={() => handleRoute(realRoute(route.path))}>
|
|
|
<div
|