refactor: doc

pull/67/head
xiaojunnuo 2021-01-10 19:15:24 +08:00
parent 6718e4940e
commit 7d0e14e2ca
2 changed files with 11 additions and 10 deletions

View File

@ -15,15 +15,16 @@
<a-button type="primary" style="float:right" @click="doSetup()"></a-button>
</template>
<div>
<b>本应用正常使用必须信任本地自动随机生成的根证书</b><br/>
1点击右上角点此去安装按钮<br/>
<b>本应用正常使用必须安装和信任CA根证书</b>该证书是应用启动时本地随机生成的<br/>
<template v-if="this.systemPlatform === 'mac'">
2然后按如下图步骤将随机生成的根证书设置为信任<br/>
1点击右上角点此去安装按钮打开钥匙串<br/>
2然后按如下图步骤将随机生成的根证书设置为始终信任<br/>
</template>
<template v-else>
1点击右上角点此去安装按钮打开证书<br/>
2然后按如下图步骤将根证书添加到<b>信任的根证书颁发机构</b><br/>
</template>
3可能需要重新启动应用和浏览器才能生效<br/>
</div>
<img width="100%" :src="setupImage" />

View File

@ -132,18 +132,18 @@ export default {
return
}
this.$confirm({
title: '提示',
content: '第一次使用,请先安装CA根证书',
cancelText: '关闭此提示',
title: '第一次使用请先安装CA根证书',
content: '本应用正常使用,必须安装和信任CA根证书',
cancelText: '下次',
okText: '去安装',
onOk: () => {
this.openSetupCa()
},
onCancel: () => {
this.setting.rootCa = this.setting.rootCa || {}
const rootCa = this.setting.rootCa
rootCa.noTip = true
this.$api.setting.save(this.setting)
// const rootCa = this.setting.rootCa
// rootCa.noTip = true
// this.$api.setting.save(this.setting)
}
})
})