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)