路由补充
This commit is contained in:
parent
7b235f33fd
commit
2b0b71a06f
@ -3,6 +3,7 @@ import {IMenuWithTopButton} from "../../interfaces/menu/IMenuWithTopButton.ts";
|
|||||||
|
|
||||||
export default function MenuWithTopButton(props: IMenuWithTopButton) {
|
export default function MenuWithTopButton(props: IMenuWithTopButton) {
|
||||||
const list = props.list.map((item, index) => (
|
const list = props.list.map((item, index) => (
|
||||||
|
// 创建项目下三个选项
|
||||||
<li className={item.active ? 'active' : ''} key={item.id} onClick={(e) => {
|
<li className={item.active ? 'active' : ''} key={item.id} onClick={(e) => {
|
||||||
props.handleListItem(e, index, item);
|
props.handleListItem(e, index, item);
|
||||||
}}>
|
}}>
|
||||||
@ -13,6 +14,7 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="menu-with-top-button">
|
<div className="menu-with-top-button">
|
||||||
|
{/* button 是三个黄色按钮 */}
|
||||||
<button className="btn btn-orange top-button"
|
<button className="btn btn-orange top-button"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
props.button.handle(e);
|
props.button.handle(e);
|
||||||
|
@ -116,6 +116,10 @@ export const router = createHashRouter([
|
|||||||
path: '/proj-edit/config-mod-list/:projId',
|
path: '/proj-edit/config-mod-list/:projId',
|
||||||
element: <ProjConfigModList/>
|
element: <ProjConfigModList/>
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/proj-edit/config-mod-list-show/:projId',
|
||||||
|
element: <ProjConfigModListShow/>
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/proj-edit/config-mod-flist/:projId',
|
path: '/proj-edit/config-mod-flist/:projId',
|
||||||
element: <ProjConfigModList isFree={true}/>
|
element: <ProjConfigModList isFree={true}/>
|
||||||
|
Loading…
Reference in New Issue
Block a user