fix: frontend routes

This commit is contained in:
tao.chen
2026-08-07 12:47:37 +08:00
parent d7934a42ab
commit 6f574073e3
12 changed files with 206 additions and 167 deletions
@@ -1,6 +1,9 @@
import Icon from "../../components/common/Icon";
import { useAuth } from "../../context/AuthContext";
import "../../styles/admin.css";
import "../../styles/dashboard.css";
export function DashboardPage({
scriptCount,
online,
@@ -3,6 +3,8 @@ import { useEffect, useState } from "react";
import { ApiRequestError, type Employee, type Workspace } from "../../services/api";
import { useApi, useAuth } from "../../context/AuthContext";
import Icon from "../common/Icon";
import "../../styles/admin.css";
import { UserMultiSelect } from "./UserMultiSelect";
const EMPTY_PROJECT_FORM = {
@@ -4,6 +4,8 @@ import { ApiRequestError, type Employee } from "../../services/api";
import { useApi, useAuth } from "../../context/AuthContext";
import Icon from "../../components/common/Icon";
import "../../styles/admin.css";
const EMPTY_FORM = {
username: "",
display_name: "",
+1 -2
View File
@@ -108,8 +108,7 @@ export function Topbar({
className="text-button"
type="button"
onClick={() => {
onLogout();
window.location.assign("/login");
void onLogout();
}}
>