style(接口测试): 开源版本的接口测试首页不显示版本选择下拉框

开源版本的接口测试首页不显示版本选择下拉框
This commit is contained in:
song-tianyang 2022-12-21 15:01:57 +08:00 committed by 建国
parent 461530e17d
commit 4db641903d
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<ms-container>
<ms-main-container style="padding: 0px">
<div class="api-home-layout">
<el-row class="api-home-toolbar">
<el-row v-if="showVersionSelector" class="api-home-toolbar">
<el-select
clearable
v-model="versionId"
@ -78,6 +78,7 @@ export default {
versionId: '',
projectId: getCurrentProjectID(),
versions: [],
showVersionSelector: false,
};
},
created() {
@ -85,6 +86,7 @@ export default {
this.$nextTick(() => {
this.refreshAllCard();
});
this.showVersionSelector = hasLicense();
},
watch: {
versionId() {