Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picBed.proxy 代理设置无法通过 setConfig 实现更新 #64

Closed
upupming opened this issue Jan 14, 2021 · 2 comments
Closed

picBed.proxy 代理设置无法通过 setConfig 实现更新 #64

upupming opened this issue Jan 14, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@upupming
Copy link
Member

现在只会在 init 的时候设置 proxy

this.Request = new Request(this)

const proxy = this.ctx.getConfig<Undefinable<string>>('picBed.proxy')
if (proxy) {
options.proxy = proxy
}

vs-picgo 只能通过 setConfig 来传配置,这样就会出现 proxy 设置不生效的问题

@upupming
Copy link
Member Author

不知道每次 setConfig 的时候,是否可以修改一下 ctx.request 的 default options 。

@Molunerfinn
Copy link
Member

不知道每次 setConfig 的时候,是否可以修改一下 ctx.request 的 default options 。

这块应该之后我需要做一下修改,每次调用request的时候,动态去取proxy的值,就OK了

@Molunerfinn Molunerfinn added the enhancement New feature or request label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants