This commit is contained in:
josc146 2023-05-20 15:22:46 +08:00
parent 4a5fceb014
commit c4922ad1d4
2 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,7 @@ const App: FC = observer(() => {
}} }}
position="top-center" position="top-center"
autoClose={4000} autoClose={4000}
pauseOnHover={true}
hideProgressBar={true} hideProgressBar={true}
newestOnTop={true} newestOnTop={true}
closeOnClick={false} closeOnClick={false}

View File

@ -94,6 +94,9 @@ export const RunButton: FC<{ onClickRun?: MouseEventHandler, iconMode?: boolean
commonStore.setModelStatus(ModelStatus.Offline); commonStore.setModelStatus(ModelStatus.Offline);
toast(t('Failed to switch model'), {type: 'error'}); toast(t('Failed to switch model'), {type: 'error'});
} }
}).catch(() => {
commonStore.setModelStatus(ModelStatus.Offline);
toast(t('Failed to switch model'), {type: 'error'});
}); });
} }
}).catch(() => { }).catch(() => {