fix: catalog jump to deployments route error

This commit is contained in:
jialin
2025-07-10 17:50:21 +08:00
parent f43d1af6a7
commit 60ee9f1a15
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const checkDefaultPage = async (userInfo: any) => {
if (isFirstLogin === null && isOnline()) {
writeState(IS_FIRST_LOGIN, true);
if (userInfo && userInfo?.is_admin) {
history.push('/models/deployment');
history.push('/models/deployments');
}
}
};
+1 -1
View File
@@ -172,7 +172,7 @@ const Catalog: React.FC = () => {
});
message.success(intl.formatMessage({ id: 'common.message.success' }));
setModelsExpandKeys([modelData.id]);
navigate('/models/deployment');
navigate('/models/deployments');
} catch (error) {}
},
[openDeployModal]
+1 -1
View File
@@ -12,7 +12,7 @@ export const checkDefaultPage = async (userInfo: any, replace: boolean) => {
if (isFirstLogin === null && isOnline()) {
writeState(IS_FIRST_LOGIN, true);
const pathname =
userInfo && userInfo?.is_admin ? '/models/deployment' : '/playground';
userInfo && userInfo?.is_admin ? '/models/deployments' : '/playground';
history.push(pathname);
return;
}
@@ -542,7 +542,7 @@ const ModelFiles = () => {
});
message.success(intl.formatMessage({ id: 'common.message.success' }));
setModelsExpandKeys([modelData.id]);
navigate('/models/deployment');
navigate('/models/deployments');
} catch (error) {
// console.log('error', error);
}