refactor: doc
parent
6718e4940e
commit
7d0e14e2ca
|
@ -15,15 +15,16 @@
|
||||||
<a-button type="primary" style="float:right" @click="doSetup()">点此去安装</a-button>
|
<a-button type="primary" style="float:right" @click="doSetup()">点此去安装</a-button>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<b>本应用正常使用必须信任本地自动随机生成的根证书</b><br/>
|
<b>本应用正常使用必须安装和信任CA根证书</b>,该证书是应用启动时本地随机生成的<br/>
|
||||||
1、点击右上角“点此去安装按钮”<br/>
|
|
||||||
<template v-if="this.systemPlatform === 'mac'">
|
<template v-if="this.systemPlatform === 'mac'">
|
||||||
2、然后按如下图步骤将随机生成的根证书设置为信任<br/>
|
1、点击右上角“点此去安装按钮”,打开钥匙串<br/>
|
||||||
|
2、然后按如下图步骤将随机生成的根证书设置为始终信任<br/>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
1、点击右上角“点此去安装按钮”,打开证书<br/>
|
||||||
2、然后按如下图步骤将根证书添加到<b>信任的根证书颁发机构</b><br/>
|
2、然后按如下图步骤将根证书添加到<b>信任的根证书颁发机构</b><br/>
|
||||||
</template>
|
</template>
|
||||||
|
3、可能需要重新启动应用和浏览器才能生效<br/>
|
||||||
</div>
|
</div>
|
||||||
<img width="100%" :src="setupImage" />
|
<img width="100%" :src="setupImage" />
|
||||||
|
|
||||||
|
|
|
@ -132,18 +132,18 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: '提示',
|
title: '第一次使用,请先安装CA根证书',
|
||||||
content: '第一次使用,请先安装CA根证书',
|
content: '本应用正常使用,必须安装和信任CA根证书',
|
||||||
cancelText: '关闭此提示',
|
cancelText: '下次',
|
||||||
okText: '去安装',
|
okText: '去安装',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.openSetupCa()
|
this.openSetupCa()
|
||||||
},
|
},
|
||||||
onCancel: () => {
|
onCancel: () => {
|
||||||
this.setting.rootCa = this.setting.rootCa || {}
|
this.setting.rootCa = this.setting.rootCa || {}
|
||||||
const rootCa = this.setting.rootCa
|
// const rootCa = this.setting.rootCa
|
||||||
rootCa.noTip = true
|
// rootCa.noTip = true
|
||||||
this.$api.setting.save(this.setting)
|
// this.$api.setting.save(this.setting)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue