refactor: 去掉切换旧版的入口

This commit is contained in:
Captain.B 2021-10-08 18:13:53 +08:00 committed by 刘瑞斌
parent 75c8407ac6
commit dbac844199
2 changed files with 2 additions and 8 deletions

View File

@ -9,7 +9,7 @@
'PROJECT_PERFORMANCE_TEST:READ','PROJECT_PERFORMANCE_REPORT:READ', 'ORGANIZATION_USER:READ',
'WORKSPACE_USER:READ']">
<el-dropdown-item :command="item" v-for="(item, index) in workspaceList" :key="index">
{{ item.name }} <i class="el-icon-check" v-if="getCurrentWorkspaceId === item.id"/>
{{ item.name }} <i class="el-icon-check" v-if="getCurrentWorkspaceId() === item.id"/>
</el-dropdown-item>
</el-dropdown-menu>
</template>
@ -113,7 +113,7 @@ export default {
changeWs(data) {
let workspaceId = data.id;
if (!workspaceId) {
if (!workspaceId || getCurrentWorkspaceId() === workspaceId) {
return false;
}
const loading = fullScreenLoading(this);

View File

@ -9,12 +9,6 @@
<el-dropdown-item command="about">{{ $t('commons.about_us') }} <i class="el-icon-info"/></el-dropdown-item>
<el-dropdown-item command="help">{{ $t('commons.help_documentation') }}</el-dropdown-item>
<el-dropdown-item command="ApiHelp">{{ $t('commons.api_help_documentation') }}</el-dropdown-item>
<el-dropdown-item command="old" v-show=isNewVersion @click.native="changeBar('old')">
{{ $t('commons.cut_back_old_version') }}
</el-dropdown-item>
<el-dropdown-item command="new" v-show=isOldVersion @click.native="changeBar('new')">
{{ $t('commons.cut_back_new_version') }}
</el-dropdown-item>
<el-dropdown-item command="logout">{{ $t('commons.exit_system') }}</el-dropdown-item>
</el-dropdown-menu>
</template>