refactor: 1

pull/192/head
xiaojunnuo 2021-11-17 23:32:05 +08:00
parent 3de2a64e41
commit 1d6733ae2b
1 changed files with 6 additions and 4 deletions

View File

@ -18,7 +18,7 @@
当前未启动
</a-tag>
</a-form-item>
<a-form-item label="设置loopback" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-form-item v-if="systemPlatform ==='win'" label="设置loopback" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-button @click="loopbackVisible=true"></a-button>
<div class="form-help">解决OneNote微软应用商店微软邮箱等大部分系统自带应用无法访问网络问题点击去设置然后按下图所示操作即可</div>
</a-form-item>
@ -62,11 +62,13 @@ export default {
data () {
return {
key: 'proxy',
loopbackVisible: false
loopbackVisible: false,
systemPlatform: ''
}
},
created () {
async created () {
const platform = await this.$api.info.getSystemPlatform()
this.systemPlatform = platform
},
mounted () {
},