新增启动参数-proxy-server与-proxy-bypass-list

This commit is contained in:
lyswhut
2022-01-04 15:27:25 +08:00
parent 36966e220c
commit b3ab05cc86
6 changed files with 31 additions and 5 deletions
+9
View File
@@ -47,6 +47,15 @@ export default () => {
getEnvParams().then(envParams => {
const envProxy = envParams['proxy-server']
if (envProxy && typeof envProxy == 'string') {
const [host, port = ''] = envProxy.split(':')
proxy.envProxy = {
host,
port,
}
}
// 初始化我的列表、下载列表等数据
initData().then(() => {
handleEnvParams(envParams) // 处理传入的启动参数