refactor: 项目切换时显示项目名

--bug=1008497 --user= 【github#8262】项目选择框太短,看不清项目名
https://www.tapd.cn/55049933/s/1077666

Closes #8262
This commit is contained in:
shiziyuan9527 2021-12-03 17:03:31 +08:00 committed by shiziyuan9527
parent 1bd3ebf4a9
commit 92ac82ced0
1 changed files with 6 additions and 3 deletions

View File

@ -4,9 +4,12 @@
<el-menu-item index="1" v-show="false">Placeholder</el-menu-item>
<el-submenu index="2" popper-class="submenu">
<template v-slot:title>
<span class="project-name" :title="currentProject">
<el-tooltip effect="light" placement="right" :enterable="false">
<div slot="content">{{ currentProject }}</div>
<span class="project-name">
{{ $t('commons.project') }}: {{ currentProject }}
</span>
</el-tooltip>
</template>
<search-list :current-project.sync="currentProject"/>
<div v-permission="['WORKSPACE_PROJECT_MANAGER:READ']">