+

房间选择

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

@@ -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 { diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index daef08e..5632e77 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -15,7 +15,7 @@ const CompressionPlugin = require('compression-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin') const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题 -const baseUrl = 'http://localhost:8080' // 后端接口 +const baseUrl = 'http://127.0.0.1:8080' // 后端接口 const port = process.env.port || process.env.npm_config_port || 80 // 端口 // 定义 Cesium 源码路径