mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +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
|
||||
style={{ marginLeft: -theme.margin }}
|
||||
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]}
|
||||
mode="horizontal"
|
||||
|
Loading…
x
Reference in New Issue
Block a user