fix: catalog jump to deployments route error
This commit is contained in:
+1
-1
@@ -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');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user