Skip to content

Commit

Permalink
pip.vue:提示信任仓库域名的作用,及配置方式。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Sep 6, 2024
1 parent 8aac702 commit fbe12c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/gui/src/view/pages/plugin/pip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
</a-form-item>
<a-form-item label="信任仓库域名" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-input v-model="config.plugin.pip.setting.trustedHost"></a-input>
<div class="form-help">注意:切换仓库镜像同时会修改pip.ini中的trusted-host配置</div>
<div class="form-help">
使用以上域名安装包时,不会进行SSL证书验证,多个域名用空格隔开<br/>
注意:切换仓库镜像同时会修改pip.ini中的trusted-host配置,即使关闭ds也会继续保持
</div>
</a-form-item>
</a-form>
</div>
Expand Down Expand Up @@ -101,6 +104,7 @@ export default {
ready () {
},
async applyBefore () {
this.config.plugin.pip.setting.trustedHost = this.config.plugin.pip.setting.trustedHost.replaceAll(/[,,。+\s]+/g, ' ').trim()
},
async applyAfter () {
await this.$api.plugin.pip.start()
Expand Down

0 comments on commit fbe12c8

Please sign in to comment.