fix custom substore

This commit is contained in:
pompurin404 2024-09-05 15:01:59 +08:00
parent 3df21e1895
commit 29373c56e4
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -7,5 +7,6 @@
- 修复部分用户无法打开Sub-Store页面的问题
- 修复Sub-Store无法复制的问题
- 修复MacOS路径有空格导致内核启动失败的问题
- 修复使用自建Sub-Store后端无法显示界面的问题
- 修复导入本地订阅失败的问题
- 修复Linux无法启动的问题

View File

@ -15,11 +15,11 @@ const SubStore: React.FC = () => {
setFrontendPort(await subStoreFrontendPort())
}
useEffect(() => {
if (!useCustomSubStore) {
getPort()
}
getPort()
}, [useCustomSubStore])
if (!backendPort || !frontendPort) return null
if (!useCustomSubStore && !backendPort) return null
if (!frontendPort) return null
return (
<>
<BasePage