diff --git a/packages/core/src/config/index.js b/packages/core/src/config/index.js index ef85134..a4b2d44 100644 --- a/packages/core/src/config/index.js +++ b/packages/core/src/config/index.js @@ -207,14 +207,14 @@ module.exports = { '*china*': true, 'dingtalk.com': true, '*.dingtalk.com': true, - 'qq.com': true, - '*.qq.com': true, 'apple.com': true, '*.apple.com': true, 'microsoft.com': true, '*.microsoft.com': true, 'alipay.com': true, '*.alipay.com': true, + 'qq.com': true, + '*.qq.com': true, 'baidu.com': true, '*.baidu.com': true }, diff --git a/packages/gui/src/view/api.js b/packages/gui/src/view/api.js index 4e5371e..df2cc41 100644 --- a/packages/gui/src/view/api.js +++ b/packages/gui/src/view/api.js @@ -27,7 +27,7 @@ export function apiInit (app) { invoke, send, async openExternal (href) { - shell.openExternal(href) + await shell.openExternal(href) }, openPath (file) { shell.openPath(file) diff --git a/packages/gui/src/view/components/setup-ca.vue b/packages/gui/src/view/components/setup-ca.vue index e1287ce..981cb63 100644 --- a/packages/gui/src/view/components/setup-ca.vue +++ b/packages/gui/src/view/components/setup-ca.vue @@ -74,7 +74,7 @@ export default { }, methods: { async openExternal (url) { - this.$api.ipc.openExternal(url) + await this.$api.ipc.openExternal(url) }, afterVisibleChange (val) { }, diff --git a/packages/gui/src/view/pages/index.vue b/packages/gui/src/view/pages/index.vue index fc4cf25..d53872d 100644 --- a/packages/gui/src/view/pages/index.vue +++ b/packages/gui/src/view/pages/index.vue @@ -334,7 +334,7 @@ export default { this.$api.update.checkForUpdate(fromUser) }, async openExternal (url) { - this.$api.ipc.openExternal(url) + await this.$api.ipc.openExternal(url) }, onShutdownTipClose (e) { this.$confirm({ diff --git a/packages/gui/src/view/pages/plugin/overwall.vue b/packages/gui/src/view/pages/plugin/overwall.vue index 380af07..2ae9db7 100644 --- a/packages/gui/src/view/pages/plugin/overwall.vue +++ b/packages/gui/src/view/pages/plugin/overwall.vue @@ -106,7 +106,7 @@ export default { }, methods: { async openExternal (url) { - this.$api.ipc.openExternal(url) + await this.$api.ipc.openExternal(url) }, async applyAfter () { if (this.status.server.enabled) { diff --git a/packages/gui/src/view/pages/setting.vue b/packages/gui/src/view/pages/setting.vue index 93bab6f..f98c9d6 100644 --- a/packages/gui/src/view/pages/setting.vue +++ b/packages/gui/src/view/pages/setting.vue @@ -94,7 +94,7 @@ export default { }, methods: { async openExternal (url) { - this.$api.ipc.openExternal(url) + await this.$api.ipc.openExternal(url) }, onAutoStartChange () { this.$api.autoStart.enabled(this.config.app.autoStart.enabled)