Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
This commit is contained in:
TIANHE
2025-12-30 18:27:55 +08:00
parent ff13fcce37
commit 4567c480ea
4 changed files with 15 additions and 13 deletions
+1
View File
@@ -74,6 +74,7 @@ PRICE_CACHE_TTL_SEC=10
# ========================= # =========================
# If you use a local proxy (common ports: 7890/7891/10808), set PROXY_PORT only. # If you use a local proxy (common ports: 7890/7891/10808), set PROXY_PORT only.
# Default scheme is socks5h and host is 127.0.0.1. # Default scheme is socks5h and host is 127.0.0.1.
# If run docker the PROXY_HOST use : host.docker.internal
PROXY_PORT= PROXY_PORT=
PROXY_HOST=127.0.0.1 PROXY_HOST=127.0.0.1
PROXY_SCHEME=socks5h PROXY_SCHEME=socks5h
+2 -1
View File
@@ -15,7 +15,7 @@ services:
- "127.0.0.1:5000:5000" - "127.0.0.1:5000:5000"
volumes: volumes:
# Persistent database and logs # Persistent database and logs
- ./backend_api_python/quantdinger.db:/app/quantdinger.db # - ./backend_api_python/quantdinger.db:/app/quantdinger.db
- ./backend_api_python/logs:/app/logs - ./backend_api_python/logs:/app/logs
- ./backend_api_python/data:/app/data - ./backend_api_python/data:/app/data
# Configuration file (optional, for development) # Configuration file (optional, for development)
@@ -24,6 +24,7 @@ services:
- PYTHON_API_HOST=0.0.0.0 - PYTHON_API_HOST=0.0.0.0
- PYTHON_API_PORT=5000 - PYTHON_API_PORT=5000
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
- SQLITE_DATABASE_FILE=/app/data/quantdinger.db
networks: networks:
- quantdinger-network - quantdinger-network
healthcheck: healthcheck:
@@ -1130,23 +1130,23 @@ export default {
} else { } else {
// 如果获取失败,使用默认值 // 如果获取失败,使用默认值
this.marketTypes = [ this.marketTypes = [
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' }, { value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' },
{ value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' }, { value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' },
{ value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' }, { value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' },
{ value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' } { value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' },
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' }
] ]
} }
} catch (error) { } catch (error) {
// 如果获取失败,使用默认值 // 如果获取失败,使用默认值
this.marketTypes = [ this.marketTypes = [
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' }, { value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' },
{ value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' }, { value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' },
{ value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' }, { value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' },
{ value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' } { value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' },
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' }
] ]
} }
@@ -766,12 +766,12 @@ export default {
})) }))
} else { } else {
marketTypes.value = [ marketTypes.value = [
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' }, { value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' },
{ value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' }, { value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' },
{ value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' }, { value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' },
{ value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' } { value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' },
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' }
] ]
} }
@@ -781,12 +781,12 @@ export default {
} }
} catch (error) { } catch (error) {
marketTypes.value = [ marketTypes.value = [
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' }, { value: 'USStock', i18nKey: 'dashboard.analysis.market.USStock' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' },
{ value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' }, { value: 'Crypto', i18nKey: 'dashboard.analysis.market.Crypto' },
{ value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' }, { value: 'Forex', i18nKey: 'dashboard.analysis.market.Forex' },
{ value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' } { value: 'Futures', i18nKey: 'dashboard.analysis.market.Futures' },
{ value: 'AShare', i18nKey: 'dashboard.analysis.market.AShare' },
{ value: 'HShare', i18nKey: 'dashboard.analysis.market.HShare' }
] ]
} }
} }