mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-26 10:05:57 +08:00
细节处修改
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
<el-container>
|
||||
<el-aside>
|
||||
<div class="media-page">
|
||||
<!-- <el-button @click="_newChat" color="#21aa93">
|
||||
<el-button @click="_newChat" type="primary" class="newChat">
|
||||
<el-icon style="margin-right: 5px">
|
||||
<Plus/>
|
||||
<Plus />
|
||||
</el-icon>
|
||||
新建对话
|
||||
</el-button> -->
|
||||
</el-button>
|
||||
|
||||
<div class="search-box">
|
||||
<el-input
|
||||
@@ -248,7 +248,7 @@
|
||||
</textarea>
|
||||
</div>
|
||||
<div class="flex-between">
|
||||
<div @click="_newChat" class="flex-center add-new">
|
||||
<!-- <div @click="_newChat" class="flex-center add-new">
|
||||
<el-tooltip
|
||||
class="box-item"
|
||||
effect="dark"
|
||||
@@ -256,7 +256,7 @@
|
||||
>
|
||||
<el-icon><CirclePlusFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="flex little-btns">
|
||||
<span class="send-btn tool-item-btn">
|
||||
<!-- showStopGenerate -->
|
||||
@@ -688,7 +688,7 @@ const resizeElement = function () {
|
||||
|
||||
// leftBoxHeight.value = window.innerHeight - 90 - 45 - 82;
|
||||
// leftBoxHeight.value = window.innerHeight - 90 - 82;
|
||||
leftBoxHeight.value = window.innerHeight - 90 - 50;
|
||||
leftBoxHeight.value = window.innerHeight - 90 - 100;
|
||||
};
|
||||
|
||||
const _newChat = () => {
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- :style="{ 'padding-left': isCollapse ? '65px' : '170px' }" -->
|
||||
<div class="right-main">
|
||||
<el-scrollbar class="right-main">
|
||||
<div
|
||||
v-if="loginUser.id === undefined || !loginUser.id"
|
||||
class="loginMask"
|
||||
@@ -205,7 +205,7 @@
|
||||
</router-view>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
<config-dialog
|
||||
v-if="loginUser.id"
|
||||
:show="showConfigDialog"
|
||||
@@ -309,13 +309,20 @@ const changeNav = (item) => {
|
||||
curPath.value = item.url;
|
||||
if (item.url.indexOf("http") !== -1) {
|
||||
// 外部链接
|
||||
router.push({ name: "ExternalLink", query: { url: item.url } });
|
||||
window.open(item.url, "_blank");
|
||||
} else {
|
||||
router.push(item.url);
|
||||
// 路由切换,确保路径变化
|
||||
if (router.currentRoute.value.path !== item.url) {
|
||||
router.push(item.url).then(() => {
|
||||
// 刷新 `routerViewKey` 触发视图重新渲染
|
||||
routerViewKey.value += 1;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
curPath.value = router.currentRoute.value.path;
|
||||
getSystemInfo()
|
||||
.then((res) => {
|
||||
logo.value = res.data.logo;
|
||||
|
||||
Reference in New Issue
Block a user