路由补充

This commit is contained in:
xixi 2024-04-28 11:04:03 +08:00
parent 7b235f33fd
commit 2b0b71a06f
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import {IMenuWithTopButton} from "../../interfaces/menu/IMenuWithTopButton.ts";
export default function MenuWithTopButton(props: IMenuWithTopButton) {
const list = props.list.map((item, index) => (
// 创建项目下三个选项
<li className={item.active ? 'active' : ''} key={item.id} onClick={(e) => {
props.handleListItem(e, index, item);
}}>
@ -13,6 +14,7 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
return (
<div className="menu-with-top-button">
{/* button 是三个黄色按钮 */}
<button className="btn btn-orange top-button"
onClick={(e) => {
props.button.handle(e);

View File

@ -116,6 +116,10 @@ export const router = createHashRouter([
path: '/proj-edit/config-mod-list/:projId',
element: <ProjConfigModList/>
},
{
path: '/proj-edit/config-mod-list-show/:projId',
element: <ProjConfigModListShow/>
},
{
path: '/proj-edit/config-mod-flist/:projId',
element: <ProjConfigModList isFree={true}/>