refactor: 去掉切换旧版的入口
This commit is contained in:
parent
75c8407ac6
commit
dbac844199
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue