refactor: 1

pull/192/head
xiaojunnuo 3 years ago
parent 3de2a64e41
commit 1d6733ae2b

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

Loading…
Cancel
Save