refactor: 拆分后台服务管理模块
This commit is contained in:
1 parent
54224d4110
commit
10a2adbe87
2 files changed
+131
-1
No files matched your search
@@ -28,6 +28,7 @@ import {
|
||||
import { createApiClient } from "./lib/api.js";
|
||||
import { InquiriesPage as FeatureInquiriesPage } from "./features/inquiries/InquiriesPage.js";
|
||||
import { TrustContentPage as FeatureTrustContentPage } from "./features/trust-content/TrustContentPage.js";
|
||||
import { ServicesPage as FeatureServicesPage } from "./features/services/ServicesPage.js";
|
||||
import { BrowserRouter, Navigate, Route, Routes, useLocation, useNavigate } from "react-router-dom";
|
||||
import type {
|
||||
BrandProfile,
|
||||
@@ -545,7 +546,7 @@ function Dashboard({ onLogout }: { onLogout: () => void }) {
|
||||
<Routes>
|
||||
<Route path="brand" element={<BrandPage />} />
|
||||
<Route path="trust" element={<FeatureTrustContentPage />} />
|
||||
<Route path="services" element={<ServicesPage />} />
|
||||
<Route path="services" element={<FeatureServicesPage />} />
|
||||
<Route path="inquiries" element={<FeatureInquiriesPage />} />
|
||||
<Route path="*" element={<Navigate to="/admin/brand" replace />} />
|
||||
</Routes>
|
||||
|
||||
Reference in new issue
Block a user