diff --git a/electron/config/bin.js b/electron/config/bin.js index 33f593d..bbb980d 100644 --- a/electron/config/bin.js +++ b/electron/config/bin.js @@ -100,7 +100,7 @@ module.exports = { go_dev: { directory: './go', cmd: 'go', - args: ['run', './main.go', '--env=dev'], + args: ['run', './main.go', '--env=dev', '--basedir=../'], }, go_build_w: { directory: './go', diff --git a/electron/config/config.default.js b/electron/config/config.default.js index b442112..925f416 100644 --- a/electron/config/config.default.js +++ b/electron/config/config.default.js @@ -116,7 +116,8 @@ module.exports = (appInfo) => { indexPath: '/public/dist/index.html', host: '127.0.0.1', port: 7072, - loadingPage: '/public/html/loading.html' + loadingPage: '/public/html/loading.html', + takeover: 'go' }; /** @@ -125,9 +126,11 @@ module.exports = (appInfo) => { */ config.cross = { go: { - auto: false, + enable: true, name: 'goapp', args: ['--env=dev'], + protocol: "http://", + hostname: "127.0.0.1", port: 7073, } }; diff --git a/electron/config/config.local.js b/electron/config/config.local.js index 9ee1bbb..69938ca 100644 --- a/electron/config/config.local.js +++ b/electron/config/config.local.js @@ -25,19 +25,6 @@ module.exports = (appInfo) => { messageLog: true }; - /** - * Cross-language service - * 跨语言服务 - */ - config.cross = { - go: { - auto: true, - name: 'goapp', - args: ['--env=dev'], - port: 7073, - } - }; - return { ...config }; diff --git a/electron/config/config.prod.js b/electron/config/config.prod.js index 6bcb77f..2ed9b61 100644 --- a/electron/config/config.prod.js +++ b/electron/config/config.prod.js @@ -25,19 +25,6 @@ module.exports = (appInfo) => { messageLog: false }; - /** - * Cross-language service - * 跨语言服务 - */ - config.cross = { - go: { - auto: true, - name: 'goapp', - args: ['--env=dev'], - port: 7073, - } - }; - return { ...config };