diff --git a/web/src/assets/css/mark-map.styl b/web/src/assets/css/mark-map.styl index b28ae05c..096c3f32 100644 --- a/web/src/assets/css/mark-map.styl +++ b/web/src/assets/css/mark-map.styl @@ -67,8 +67,18 @@ .right-box { width 100% - h2 { - color #ffffff + .top-bar { + display flex + justify-content space-between + align-items center + + h2 { + color #ffffff + } + + .el-button { + margin-right 20px + } } .markdown { diff --git a/web/src/views/ChatPlus.vue b/web/src/views/ChatPlus.vue index 58481265..41e6e170 100644 --- a/web/src/views/ChatPlus.vue +++ b/web/src/views/ChatPlus.vue @@ -378,7 +378,12 @@ const initData = () => { httpGet(`/api/role/list`).then((res) => { roles.value = res.data; console.log() - roleId.value = parseInt(router.currentRoute.value.params["role_id"]) ?? roles.value[0]['id']; + if (router.currentRoute.value.params.role_id) { + roleId.value = parseInt(router.currentRoute.value.params["role_id"]) + } else { + roleId.value = roles.value[0]['id'] + } + newChat(); }).catch((e) => { ElMessage.error('获取聊天角色失败: ' + e.messages) diff --git a/web/src/views/Home.vue b/web/src/views/Home.vue index e320098a..fe3ba9e0 100644 --- a/web/src/views/Home.vue +++ b/web/src/views/Home.vue @@ -135,9 +135,10 @@ onMounted(() => { } .content { - width: 100%; - height: 100vh; - box-sizing: border-box; + width: 100% + height: 100vh + box-sizing: border-box + background-color #282c34 } } diff --git a/web/src/views/MarkMap.vue b/web/src/views/MarkMap.vue index 0bbeff37..3243d274 100644 --- a/web/src/views/MarkMap.vue +++ b/web/src/views/MarkMap.vue @@ -70,11 +70,20 @@