optimize: NPM加速,镜像变量列表,设置为 `readonly`,因为它们原本就是不可编辑的。

pull/349/head
王良 2024-09-10 15:19:02 +08:00
parent caa0e809fa
commit 2e2a692a18
1 changed files with 2 additions and 2 deletions

View File

@ -62,10 +62,10 @@
<div class="form-help">某些库需要自己设置镜像变量才能下载比如electron</div>
<a-row :gutter="10" style="margin-top: 5px" v-for="(item,index) of npmVariables" :key='index'>
<a-col :span="10">
<a-input :disabled="item.key === false" v-model="item.key"></a-input>
<a-input v-model="item.key" :title="item.key" :readonly="true"></a-input>
</a-col>
<a-col :span="10">
<a-input :disabled="item.value === false" v-model="item.value"></a-input>
<a-input v-model="item.value" :title="item.value" :readonly="true"></a-input>
</a-col>
<a-col :span="4">
<a-icon v-if="item.exists&& item.hadSet" title="已设置" style="color:green" type="check"/>