mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 10:42:19 +08:00
fix: create collections button issue on clicking Collections tab in REST API (#5992)
This commit is contained in:
parent
b4ed765317
commit
dbd40f74cb
@ -196,7 +196,10 @@ export const AdminSettingsLayout = () => {
|
|||||||
<Menu
|
<Menu
|
||||||
style={{ marginLeft: -theme.margin }}
|
style={{ marginLeft: -theme.margin }}
|
||||||
onClick={({ key }) => {
|
onClick={({ key }) => {
|
||||||
navigate(replaceRouteParams(app.pluginSettingsManager.getRoutePath(key), params));
|
const targetPath = replaceRouteParams(app.pluginSettingsManager.getRoutePath(key), params);
|
||||||
|
if (location.pathname !== targetPath) {
|
||||||
|
navigate(targetPath);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
selectedKeys={[currentSetting?.name]}
|
selectedKeys={[currentSetting?.name]}
|
||||||
mode="horizontal"
|
mode="horizontal"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user