From 3c6f91efe2d956e827dafdd9dd4fcabf7e945a29 Mon Sep 17 00:00:00 2001 From: 18603046467 Date: Tue, 23 Nov 2021 23:00:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E6=9F=90?= =?UTF-8?q?=E4=BA=9B=E8=AE=BE=E7=BD=AE=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/src/view/components/setup-ca.vue | 2 +- packages/gui/src/view/mixins/plugin.js | 16 ++++++++++++++-- packages/gui/src/view/pages/plugin/pip.vue | 2 +- packages/gui/src/view/pages/proxy.vue | 4 ++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/packages/gui/src/view/components/setup-ca.vue b/packages/gui/src/view/components/setup-ca.vue index 19bcfa58..8a954c43 100644 --- a/packages/gui/src/view/components/setup-ca.vue +++ b/packages/gui/src/view/components/setup-ca.vue @@ -54,7 +54,7 @@ export default { }, data () { return { - systemPlatform: 'win' + systemPlatform: '' } }, async created () { diff --git a/packages/gui/src/view/mixins/plugin.js b/packages/gui/src/view/mixins/plugin.js index 68f082f9..d9689489 100644 --- a/packages/gui/src/view/mixins/plugin.js +++ b/packages/gui/src/view/mixins/plugin.js @@ -29,9 +29,12 @@ export default { }, async init () { this.status = this.$status - this.systemPlatform = await this.$api.info.getSystemPlatform() + this.config = await this.$api.config.reload() - console.log('config', this.config) + this.systemPlatform = await this.$api.info.getSystemPlatform() + console.log('config', this.config, this.systemPlatform) + // eslint-disable-next-line no-debugger + if (this.ready) { return this.ready(this.config) } @@ -84,6 +87,15 @@ export default { return {} } return value + }, + isWindows () { + return this.systemPlatform === 'windows' + }, + isMac () { + return this.systemPlatform === 'mac' + }, + isLinux () { + return this.systemPlatform === 'linux' } } } diff --git a/packages/gui/src/view/pages/plugin/pip.vue b/packages/gui/src/view/pages/plugin/pip.vue index 8799c5ec..59e6fd26 100644 --- a/packages/gui/src/view/pages/plugin/pip.vue +++ b/packages/gui/src/view/pages/plugin/pip.vue @@ -23,7 +23,7 @@
如果你的pip命令改成了其他名字(如pip3),可以在此处修改
- + 开启系统代理时是否同时修改HTTPS_PROXY环境变量 diff --git a/packages/gui/src/view/pages/proxy.vue b/packages/gui/src/view/pages/proxy.vue index 6e65a3a6..22d784a9 100644 --- a/packages/gui/src/view/pages/proxy.vue +++ b/packages/gui/src/view/pages/proxy.vue @@ -18,14 +18,14 @@ 当前未启动 - + 是否同时修改HTTPS_PROXY环境变量
当发现某些应用并没有走加速通道或者加速报错时,可以尝试勾选此选项,并重新开启系统代理开关
注意:当前已打开的命令行并不会实时生效,需要重新打开一个新的命令行窗口
- + 去设置
解决OneNote、MicrosoftStore、Outlook等UWP应用开启代理后无法访问网络的问题