feat: 重构登录模块并添加验证码功能
- 将登录组件文件名从login.tsx改为Login.tsx - 添加验证码图片显示和验证功能 - 修改登录后默认跳转路径为/ckbox/weChat - 移除第三方登录功能 - 更新项目部署路径为tkb-wechat - 清理无用路由模块
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import Login from "@/pages/login/login";
|
||||
import Login from "@/pages/login/Login";
|
||||
import Guide from "@/pages/guide";
|
||||
|
||||
const authRoutes = [
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
import ContentLibraryList from "@/pages/mobile/mine/content/list/index";
|
||||
import ContentLibraryForm from "@/pages/mobile/mine/content/form/index";
|
||||
import MaterialsList from "@/pages/mobile/mine/content/materials/list/index";
|
||||
import MaterialForm from "@/pages/mobile/mine/content/materials/form/index";
|
||||
|
||||
const contentRoutes = [
|
||||
{
|
||||
path: "/mine/content",
|
||||
element: <ContentLibraryList />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/mine/content/new",
|
||||
element: <ContentLibraryForm />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/mine/content/edit/:id",
|
||||
element: <ContentLibraryForm />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/mine/content/materials/:id",
|
||||
element: <MaterialsList />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/mine/content/materials/new/:id",
|
||||
element: <MaterialForm />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/mine/content/materials/edit/:id/:materialId",
|
||||
element: <MaterialForm />,
|
||||
auth: true,
|
||||
},
|
||||
];
|
||||
|
||||
export default contentRoutes;
|
||||
0
Touchkebao/src/router/module/mobile.tsx
Normal file
0
Touchkebao/src/router/module/mobile.tsx
Normal file
@@ -1,33 +0,0 @@
|
||||
import ScenariosList from "@/pages/mobile/scenarios/list";
|
||||
import NewPlan from "@/pages/mobile/scenarios/plan/new";
|
||||
import ListPlan from "@/pages/mobile/scenarios/plan/list";
|
||||
|
||||
const scenarioRoutes = [
|
||||
{
|
||||
path: "/scenarios",
|
||||
element: <ScenariosList />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/scenarios/new",
|
||||
element: <NewPlan />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/scenarios/new/:scenarioId",
|
||||
element: <NewPlan />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/scenarios/edit/:planId",
|
||||
element: <NewPlan />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/scenarios/list/:scenarioId/:scenarioName",
|
||||
element: <ListPlan />,
|
||||
auth: true,
|
||||
},
|
||||
];
|
||||
|
||||
export default scenarioRoutes;
|
||||
@@ -1,17 +0,0 @@
|
||||
import WechatAccounts from "@/pages/mobile/mine/wechat-accounts/list";
|
||||
import WechatAccountDetail from "@/pages/mobile/mine/wechat-accounts/detail";
|
||||
|
||||
const wechatAccountRoutes = [
|
||||
{
|
||||
path: "/wechat-accounts",
|
||||
element: <WechatAccounts />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/wechat-accounts/detail/:id",
|
||||
element: <WechatAccountDetail />,
|
||||
auth: true,
|
||||
},
|
||||
];
|
||||
|
||||
export default wechatAccountRoutes;
|
||||
@@ -1,183 +0,0 @@
|
||||
import Workspace from "@/pages/mobile/workspace/main";
|
||||
import ListAutoLike from "@/pages/mobile/workspace/auto-like/list";
|
||||
import NewAutoLike from "@/pages/mobile/workspace/auto-like/new";
|
||||
import RecordAutoLike from "@/pages/mobile/workspace/auto-like/record";
|
||||
import AutoGroupList from "@/pages/mobile/workspace/auto-group/list";
|
||||
import AutoGroupDetail from "@/pages/mobile/workspace/auto-group/detail";
|
||||
import AutoGroupForm from "@/pages/mobile/workspace/auto-group/form";
|
||||
import GroupPush from "@/pages/mobile/workspace/group-push/list";
|
||||
import FormGroupPush from "@/pages/mobile/workspace/group-push/form";
|
||||
import DetailGroupPush from "@/pages/mobile/workspace/group-push/detail";
|
||||
import MomentsSync from "@/pages/mobile/workspace/moments-sync/list";
|
||||
import NewMomentsSync from "@/pages/mobile/workspace/moments-sync/new/index";
|
||||
import MomentsSyncRecord from "@/pages/mobile/workspace/moments-sync/record";
|
||||
import AIAssistant from "@/pages/mobile/workspace/ai-assistant/AIAssistant";
|
||||
import TrafficDistribution from "@/pages/mobile/workspace/traffic-distribution/list/index";
|
||||
import TrafficDistributionDetail from "@/pages/mobile/workspace/traffic-distribution/detail/index";
|
||||
import NewDistribution from "@/pages/mobile/workspace/traffic-distribution/form/index";
|
||||
import ContactImportList from "@/pages/mobile/workspace/contact-import/list";
|
||||
import ContactImportForm from "@/pages/mobile/workspace/contact-import/form";
|
||||
import ContactImportDetail from "@/pages/mobile/workspace/contact-import/detail";
|
||||
import PlaceholderPage from "@/components/PlaceholderPage";
|
||||
import AiAnalyzer from "@/pages/mobile/workspace/ai-analyzer";
|
||||
|
||||
const workspaceRoutes = [
|
||||
{
|
||||
path: "/workspace",
|
||||
element: <Workspace />,
|
||||
auth: true,
|
||||
},
|
||||
// 自动点赞
|
||||
{
|
||||
path: "/workspace/auto-like",
|
||||
element: <ListAutoLike />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/auto-like/new",
|
||||
element: <NewAutoLike />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/auto-like/record/:id",
|
||||
element: <RecordAutoLike />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/auto-like/edit/:id",
|
||||
element: <NewAutoLike />,
|
||||
auth: true,
|
||||
},
|
||||
// 自动建群
|
||||
{
|
||||
path: "/workspace/auto-group",
|
||||
element: <AutoGroupList />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/auto-group/new",
|
||||
element: <AutoGroupForm />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/auto-group/:id",
|
||||
element: <AutoGroupDetail />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/auto-group/:id/edit",
|
||||
element: <AutoGroupForm />,
|
||||
auth: true,
|
||||
},
|
||||
// 群发推送
|
||||
{
|
||||
path: "/workspace/group-push",
|
||||
element: <GroupPush />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/group-push/:id",
|
||||
element: <DetailGroupPush />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/group-push/new",
|
||||
element: <FormGroupPush />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/group-push/edit/:id",
|
||||
element: <FormGroupPush />,
|
||||
auth: true,
|
||||
},
|
||||
// 朋友圈同步
|
||||
{
|
||||
path: "/workspace/moments-sync",
|
||||
element: <MomentsSync />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/moments-sync/new",
|
||||
element: <NewMomentsSync />,
|
||||
auth: true,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/workspace/moments-sync/record/:id",
|
||||
element: <MomentsSyncRecord />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/moments-sync/edit/:id",
|
||||
element: <NewMomentsSync />,
|
||||
auth: true,
|
||||
},
|
||||
// AI助手
|
||||
{
|
||||
path: "/workspace/ai-assistant",
|
||||
element: <AIAssistant />,
|
||||
auth: true,
|
||||
},
|
||||
// AI数据分析
|
||||
{
|
||||
path: "/workspace/ai-analyzer",
|
||||
element: <AiAnalyzer />,
|
||||
auth: true,
|
||||
},
|
||||
// AI策略优化
|
||||
{
|
||||
path: "/workspace/ai-strategy",
|
||||
element: <PlaceholderPage title="AI策略优化" />,
|
||||
auth: true,
|
||||
},
|
||||
// AI销售预测
|
||||
{
|
||||
path: "/workspace/ai-forecast",
|
||||
element: <PlaceholderPage title="AI销售预测" />,
|
||||
auth: true,
|
||||
},
|
||||
// 流量分发
|
||||
{
|
||||
path: "/workspace/traffic-distribution",
|
||||
element: <TrafficDistribution />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/traffic-distribution/new",
|
||||
element: <NewDistribution />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/traffic-distribution/edit/:id",
|
||||
element: <NewDistribution />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/traffic-distribution/:id",
|
||||
element: <TrafficDistributionDetail />,
|
||||
auth: true,
|
||||
},
|
||||
// 通讯录导入
|
||||
{
|
||||
path: "/workspace/contact-import/list",
|
||||
element: <ContactImportList />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/contact-import/form",
|
||||
element: <ContactImportForm />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/contact-import/form/:id",
|
||||
element: <ContactImportForm />,
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
path: "/workspace/contact-import/detail/:id",
|
||||
element: <ContactImportDetail />,
|
||||
auth: true,
|
||||
},
|
||||
];
|
||||
|
||||
export default workspaceRoutes;
|
||||
Reference in New Issue
Block a user