* fix:Tips the number of composite models(#9945790) * Modification of judgment logic * Modification of judgment logic(2)
This commit is contained in:
Родитель
e831581267
Коммит
fcb22b6373
|
@ -164,6 +164,7 @@ export const english: IAppStrings = {
|
|||
},
|
||||
loading: "Loading models...",
|
||||
composing: "Model is composing, please wait...",
|
||||
limitQuantityComposedModel:"Form Recognizer free resource supports up to 5 models in a composed model. Please upgrade to a paid resource",
|
||||
column: {
|
||||
icon: {
|
||||
name: "Composed Icon",
|
||||
|
|
|
@ -164,6 +164,7 @@ export const spanish: IAppStrings = {
|
|||
},
|
||||
loading: "Cargando modelos...",
|
||||
composing: "La modelo está componiendo, por favor espera ...",
|
||||
limitQuantityComposedModel:"Los recursos gratuitos del identificador de formularios soportan hasta cinco modelos en un modelo compuesto.Por favor, actualice a recursos pagados",
|
||||
column: {
|
||||
icon: {
|
||||
name: "Icono compuesto",
|
||||
|
|
|
@ -163,6 +163,7 @@ export interface IAppStrings {
|
|||
}
|
||||
loading: string,
|
||||
composing: string,
|
||||
limitQuantityComposedModel:string,
|
||||
column: {
|
||||
icon: {
|
||||
name: string,
|
||||
|
|
|
@ -784,7 +784,14 @@ export default class ModelComposePage extends React.Component<IModelComposePageP
|
|||
this.setState({
|
||||
isComposing: false,
|
||||
})
|
||||
throw new AppError(ErrorCode.ModelNotFound, error.message);
|
||||
if( error.errorCode===ErrorCode.ModelNotFound){
|
||||
this.setState({
|
||||
isError:true,
|
||||
errorMessage:strings.modelCompose.limitQuantityComposedModel
|
||||
})
|
||||
}else{
|
||||
throw new AppError(ErrorCode.ModelNotFound, error.message);
|
||||
}
|
||||
}
|
||||
}, 5000);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче