<div dir="ltr">Hello.<div>I resolve my problem by add some things related with new menu to </div><div><br></div><div><a href="https://github.com/openstack/skyline-console/blob/master/src/pages/basic/routes/index.js">https://github.com/openstack/skyline-console/blob/master/src/pages/basic/routes/index.js</a></div><div><br></div><div>I think we need update docs,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 19, 2023 at 1:10 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello guys.<div>I update,</div><div>When I do similarly things with user-menu. It worked. I just have problem when Add item on Console menu.<br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 17, 2023 at 2:16 PM Nguyễn Hữu Khôi <<a href="mailto:nguyenhuukhoinw@gmail.com" target="_blank">nguyenhuukhoinw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello guys.<div><br></div><div>I am working on Skyline and I followed </div><div><br></div><div><a href="https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-12-Menu-introduction.md" target="_blank">https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-12-Menu-introduction.md</a><br></div><div><br></div><div><a href="https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-13-Route-introduction.md" target="_blank">https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-13-Route-introduction.md</a><br></div><div><br></div><div>I add layouts/menu.jsx</div><div>#####</div><div> {<br> path: '/konitor',<br> name: t('Konitor'),<br> key: /konitor',<br> icon: <DatabaseOutlined />,<br> children: [<br> {<br> path: '/konitor/konitork',<br> name: t('Konitork'),<br> key: 'konitork',<br> level: 1, <br> } <br> ],<br> }<br></div><div><br></div><div>I put my component in </div><div><br></div><div>pages/konitor/containers/Konitork/index.jsx</div><div><br></div><div>#######</div><div>import React, { Component } from 'react';<br>import { inject, observer } from 'mobx-react';<br><br><br></div><div>export class Konitork extends Component {<br> render() {<br> return (<br> <div>nhk oi</div><br> );<br> }<br>}<br>export default observer(Konitork);<br></div><div><br></div><div>Here is my routes/index.js</div><div><br></div><div>#####</div><div><br></div><div>import BaseLayout from '../../../layouts/Basic';<br>import Konitork from '../containers/Konitork';<br>import Instance from '../containers/Instance';<br>const PATH = '/konitor';<br>export default [<br> {<br> path: PATH,<br> component: BaseLayout,<br> routes: [<br> { path: `${PATH}/konitork`, component: Konitork, exact: true },<br> ],<br> },<br>];<br></div><div><br></div><div>When click on Menu. Konitor>>Konitork. It return 404. although I have x.x.x.x:9999/konitor/konitork.</div><div><br></div><div>Pls correct me. Thank you much.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Nguyen Huu Khoi<br></div></div></div></div></div>
</blockquote></div>
</blockquote></div>