diff --git a/frontend/src/pages/Configs.tsx b/frontend/src/pages/Configs.tsx index 8d9a290..3b73cfb 100644 --- a/frontend/src/pages/Configs.tsx +++ b/frontend/src/pages/Configs.tsx @@ -240,10 +240,10 @@ export const Configs: FC = observer(() => { { - if (commonStore.platform == 'darwin') { + if (commonStore.platform === 'darwin') { toast(t('MacOS is not yet supported for performing this operation, please do it manually.'), { type: 'info' }); return; - } else if (commonStore.platform == 'linux') { + } else if (commonStore.platform === 'linux') { toast(t('Linux is not yet supported for performing this operation, please do it manually.'), { type: 'info' }); return; } @@ -338,7 +338,7 @@ export const Configs: FC = observer(() => { src={commonStore.settings.language === 'zh' ? strategyZhImg : strategyImg} /> } { - selectedConfig.modelParameters.device == 'Custom' && + selectedConfig.modelParameters.device === 'Custom' && setDisplayStrategyImg(true)} onMouseLeave={() => setDisplayStrategyImg(false)} @@ -353,7 +353,7 @@ export const Configs: FC = observer(() => { }} /> } /> } - {selectedConfig.modelParameters.device == 'Custom' &&
} + {selectedConfig.modelParameters.device === 'Custom' &&
} { selectedConfig.modelParameters.device != 'CPU' && selectedConfig.modelParameters.device != 'MPS' && { if (path) ReadFileInfo(path).then(info => { - if (info.size == 0 && url) + if (info.size === 0 && url) AddToDownloadList(path, url.replace('@master', '@v' + manifest.version)); }).catch(() => { if (url)