Quellcode durchsuchen

移除上传内容管理菜单入口

- 路由层移除 videos 路由及左侧菜单项
- setting 页隐藏指向上传页的「去发视频」按钮,清理对应函数与未使用 import

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
刘立冬 vor 16 Stunden
Ursprung
Commit
0bb078d63d
2 geänderte Dateien mit 2 neuen und 20 gelöschten Zeilen
  1. 1 12
      src/views/publishContent/publishContent.router.tsx
  2. 1 8
      src/views/setting/setting.tsx

+ 1 - 12
src/views/publishContent/publishContent.router.tsx

@@ -1,4 +1,4 @@
-import Icon, { DesktopOutlined, UploadOutlined } from '@ant-design/icons'
+import Icon, { DesktopOutlined } from '@ant-design/icons'
 import { AdminRouterItem } from "../../router";
 import { AdminRouterItem } from "../../router";
 import React, { Suspense } from 'react';
 import React, { Suspense } from 'react';
 import WeComIcon from "@src/assets/images/publishContent/wxCom.svg?react";
 import WeComIcon from "@src/assets/images/publishContent/wxCom.svg?react";
@@ -9,7 +9,6 @@ import { Outlet } from "react-router-dom";
 // Lazy load components
 // Lazy load components
 const WeCom = React.lazy(() => import('./weCom/index'));
 const WeCom = React.lazy(() => import('./weCom/index'));
 const WeGZH = React.lazy(() => import('./weGZH/index'));
 const WeGZH = React.lazy(() => import('./weGZH/index'));
-const Videos = React.lazy(() => import('./videos/index'));
 
 
 // Loading fallback component
 // Loading fallback component
 // eslint-disable-next-line react-refresh/only-export-components
 // eslint-disable-next-line react-refresh/only-export-components
@@ -60,16 +59,6 @@ const demoRoutes: AdminRouterItem[] = [
 					icon: <Icon component={WeComIcon} className="!text-[20px]"/>,
 					icon: <Icon component={WeComIcon} className="!text-[20px]"/>,
 				}
 				}
 			},
 			},
-			{
-				path: 'videos',
-				element: <LazyComponent Component={Videos} />,
-				meta: {
-					label: "上传内容管理",
-					title: "上传内容管理",
-					key: "/publishContent/videos",
-					icon: <UploadOutlined className="!text-[20px]"/>,
-				}
-			},
 		]
 		]
 	}
 	}
 ]
 ]

+ 1 - 8
src/views/setting/setting.tsx

@@ -1,7 +1,7 @@
 import { useEffect, useState } from 'react'
 import { useEffect, useState } from 'react'
 import { useParams } from 'react-router-dom';
 import { useParams } from 'react-router-dom';
 import wxLogin from './wxLogin'
 import wxLogin from './wxLogin'
-import { Spin, Button } from 'antd';
+import { Spin } from 'antd';
 import { UserInfo } from './type';
 import { UserInfo } from './type';
 import http from '@src/http/index';
 import http from '@src/http/index';
 import { getBindPQUserInfo, bindPQUser } from "@src/http/api";
 import { getBindPQUserInfo, bindPQUser } from "@src/http/api";
@@ -79,10 +79,6 @@ const Setting = () => {
 		})
 		})
 	}
 	}
 
 
-	const postVideo = () => {
-		window.location.href = '/publishContent/videos'
-	}
-
   return (
   return (
 		<div className='w-full h-full'>
 		<div className='w-full h-full'>
 			<div className='px-6 py-1 flex flex-row justify-between items-center border-b border-gray-300'>
 			<div className='px-6 py-1 flex flex-row justify-between items-center border-b border-gray-300'>
@@ -98,9 +94,6 @@ const Setting = () => {
 							<div className='text-black-600 mt-4'>
 							<div className='text-black-600 mt-4'>
 								视频归属用户的票圈UID:{pqUserInfo?.uid}
 								视频归属用户的票圈UID:{pqUserInfo?.uid}
 							</div>
 							</div>
-							<div className='text-black-600 mt-10'>
-								<Button type="primary" onClick={postVideo}>去发视频</Button>
-							</div>
 						</div>
 						</div>
 					)
 					)
 				) : (
 				) : (