feat: 增加后台品牌工作空间配置页面
This commit is contained in:
1 parent
6e1aca3e27
commit
46c3e5504e
3 files changed
+252
No files matched your search
@@ -44,6 +44,11 @@ const FeatureServicesPage = React.lazy(() =>
|
||||
const FeatureBrandPage = React.lazy(() =>
|
||||
import("./features/brand/BrandPage.js").then((module) => ({ default: module.BrandPage })),
|
||||
);
|
||||
const FeatureWorkspacePage = React.lazy(() =>
|
||||
import("./features/workspace/WorkspacePage.js").then((module) => ({
|
||||
default: module.WorkspacePage,
|
||||
})),
|
||||
);
|
||||
import { BrowserRouter, Navigate, Route, Routes, useLocation, useNavigate } from "react-router-dom";
|
||||
import type {
|
||||
BrandProfile,
|
||||
@@ -94,6 +99,7 @@ function Dashboard({ onLogout }: { onLogout: () => void }) {
|
||||
const page = location.pathname.split("/")[2] || "brand";
|
||||
const items = [
|
||||
{ key: "brand", label: "品牌信任" },
|
||||
{ key: "workspace", label: "工作空间" },
|
||||
{ key: "trust", label: "信任内容" },
|
||||
{ key: "services", label: "服务与合作" },
|
||||
{ key: "inquiries", label: "咨询记录" },
|
||||
@@ -129,6 +135,7 @@ function Dashboard({ onLogout }: { onLogout: () => void }) {
|
||||
<Suspense fallback={<Card loading />}>
|
||||
<Routes>
|
||||
<Route path="/admin/brand" element={<FeatureBrandPage />} />
|
||||
<Route path="/admin/workspace" element={<FeatureWorkspacePage />} />
|
||||
<Route path="/admin/trust" element={<FeatureTrustContentPage />} />
|
||||
<Route path="/admin/services" element={<FeatureServicesPage />} />
|
||||
<Route path="/admin/inquiries" element={<FeatureInquiriesPage />} />
|
||||
|
||||
Reference in new issue
Block a user