| | |
| | | <template> |
| | | <div class="index"> |
| | | <div class="common-op"> |
| | | <el-dropdown @command="handleCommand" trigger="click"> |
| | | <span class="el-dropdown-link"> |
| | | <el-dropdown @command="handleCommand" trigger="hover"> |
| | | <span class="el-dropdown-link" style="user-select: none"> |
| | | 张三<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | |
| | | }, |
| | | methods: { |
| | | sessionChange(session, index) { |
| | | console.log("触发了吗") |
| | | this.currentSession = index |
| | | if (this.$router.currentRoute.path !== "/chat") { |
| | | this.$router.push("/chat") |
| | |
| | | position: absolute; |
| | | top: 20px; |
| | | right: 50px; |
| | | z-index: 10; |
| | | } |
| | | .setting { |
| | | margin-top: 20px; |