From 6a6da3311e7587c067770f83b5819a8752878b15 Mon Sep 17 00:00:00 2001 From: fengweiqiang-coder Date: Tue, 6 Apr 2021 16:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/index.js | 2 +- src/renderer/views/dapp.vue | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 1a1726f..cf71551 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -663,7 +663,7 @@ function createBrowserView (url, isClose) { view.webContents.on('did-finish-load', (event, input) => { mainWindow.webContents.send('loading-status', false) - view.setBackgroundColor("white") + view.setBackgroundColor('white') }) view.webContents.on('render-process-gone', (event, details) => { diff --git a/src/renderer/views/dapp.vue b/src/renderer/views/dapp.vue index e58dd84..a24f75a 100644 --- a/src/renderer/views/dapp.vue +++ b/src/renderer/views/dapp.vue @@ -364,15 +364,15 @@ export default { this.DAppUrl = item.value }, selectChangeChainType (value) { - this.DAppUrl=this.state + this.DAppUrl = this.state this.getDApps(value) this.serchOpenUrl(this.DAppUrl) }, - selectCloseBrowserView(){ + selectCloseBrowserView () { ipcRenderer.send('openBrowserView', 'url', true) }, handleClick (tab) { - this.state='' + this.state = '' this.changeChain(tab.label) this.getDApps(tab.label) }, @@ -439,7 +439,7 @@ export default { this.status = 1 }, openUrl (urlType, url, title, iconUrl) { - this.state=url + this.state = url if (urlType === 'PolkadotJS') { // 判断是否有dot地址没有提示下载应用 let addressKSM @@ -492,9 +492,9 @@ export default { this.changeStyle('none', '.el-autocomplete-suggestion') if (url !== '') { - if(url.indexOf('https://') === -1){ - url = "https://"+url - this.state=url + if (url.indexOf('https://') === -1) { + url = 'https://' + url + this.state = url } this.isLoading = true ipcRenderer.send('openBrowserView', url, false)