refactor: doc
parent
e6d4ae6753
commit
4d4db468e9
12
README.md
12
README.md
|
@ -238,9 +238,16 @@ mac 代理查看
|
||||||
|
|
||||||
### 3、浏览器打开提示证书不受信任
|
### 3、浏览器打开提示证书不受信任
|
||||||
|
|
||||||
windows: 请确认证书已正确安装在“信任的根证书颁发机构”下
|
* windows: 请确认证书已正确安装在“信任的根证书颁发机构”下
|
||||||
|
|
||||||
mac: 请确认证书已经被安装并已经设置信任。
|
* mac: 请确认证书已经被安装并已经设置信任。
|
||||||
|
|
||||||
|
* 火狐浏览器:
|
||||||
|
火狐浏览器不走系统的根证书,需要在选项中添加根证书
|
||||||
|
1、火狐浏览器->选项->隐私与安全->证书->查看证书
|
||||||
|
2、证书颁发机构->导入
|
||||||
|
3、选择证书文件`C:\Users\Administrator\.dev-sidecar\dev-sidecar.ca.crt`(Mac为`~/.dev-sidecar`目录)
|
||||||
|
4、勾选信任由此证书颁发机构来标识网站,确定即可
|
||||||
|
|
||||||
### 4. 打开github显示连接超时
|
### 4. 打开github显示连接超时
|
||||||
请右键退出dev-sidecar
|
请右键退出dev-sidecar
|
||||||
|
@ -253,6 +260,7 @@ mac: 请确认证书已经被安装并已经设置信任。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## 联系作者
|
## 联系作者
|
||||||
|
|
||||||
欢迎bug反馈,需求建议,技术交流等(请备注dev-sidecar,或简称DS)
|
欢迎bug反馈,需求建议,技术交流等(请备注dev-sidecar,或简称DS)
|
||||||
|
|
|
@ -77,6 +77,15 @@ function setTray (app) {
|
||||||
|
|
||||||
function createWindow () {
|
function createWindow () {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
|
|
||||||
|
let startHideWindow = false
|
||||||
|
if (process.argv) {
|
||||||
|
const args = minimist(process.argv)
|
||||||
|
if (args.hideWindow) {
|
||||||
|
startHideWindow = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
width: 900,
|
width: 900,
|
||||||
height: 750,
|
height: 750,
|
||||||
|
@ -88,6 +97,7 @@ function createWindow () {
|
||||||
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
|
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
|
||||||
nodeIntegration: true// process.env.ELECTRON_NODE_INTEGRATION
|
nodeIntegration: true// process.env.ELECTRON_NODE_INTEGRATION
|
||||||
},
|
},
|
||||||
|
show: !startHideWindow,
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
icon: path.join(__static, 'icon.png')
|
icon: path.join(__static, 'icon.png')
|
||||||
})
|
})
|
||||||
|
@ -102,6 +112,10 @@ function createWindow () {
|
||||||
win.loadURL('app://./index.html')
|
win.loadURL('app://./index.html')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (startHideWindow) {
|
||||||
|
win.hide()
|
||||||
|
}
|
||||||
|
|
||||||
win.on('closed', async (e) => {
|
win.on('closed', async (e) => {
|
||||||
win = null
|
win = null
|
||||||
tray = null
|
tray = null
|
||||||
|
@ -113,14 +127,6 @@ function createWindow () {
|
||||||
win.hide()
|
win.hide()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (process.argv) {
|
|
||||||
const args = minimist(process.argv)
|
|
||||||
console.log('start args', args)
|
|
||||||
if (args.hideWindow) {
|
|
||||||
win.hide()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function beforeQuit () {
|
async function beforeQuit () {
|
||||||
|
|
Loading…
Reference in New Issue