+

房间选择

选择或创建您要加入的协作房间

@@ -169,6 +172,18 @@ export default { } }, methods: { + /** 返回登录页:登出并跳转到登录界面 */ + backToLogin() { + this.$confirm('确定退出当前账号并返回登录页吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$store.dispatch('LogOut').then(() => { + this.$router.push({ path: '/login' }).catch(() => {}) + }).catch(() => {}) + }).catch(() => {}) + }, getList() { listRooms().then(response => { this.rooms = response.rows || response; @@ -309,6 +324,25 @@ export default { padding: 20px 24px 16px; border-bottom: 1px solid #e2e8f0; text-align: center; + position: relative; +} + +.back-login { + position: absolute; + left: 24px; + top: 50%; + transform: translateY(-50%); + font-size: 14px; + color: #64748b; + text-decoration: none; + display: inline-flex; + align-items: center; + gap: 4px; + transition: color 0.2s; +} + +.back-login:hover { + color: #165DFF; } .panel-header h2 {