mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 16:32:28 +00:00
perf: 优化 ai chat bot
This commit is contained in:
@@ -377,7 +377,7 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
padding: 15px 20px 0 20px;
|
||||
padding: 10px 10px 0 10px;
|
||||
|
||||
.ztree {
|
||||
width: 100%;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<router-view :key="key" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
<ChatGPT />
|
||||
<ChatGPT v-if="chatAiEnabled" />
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -28,6 +28,9 @@ export default {
|
||||
} else {
|
||||
return new Date().getTime()
|
||||
}
|
||||
},
|
||||
chatAiEnabled() {
|
||||
return this.publicSettings?.CHAT_AI_ENABLED
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@@ -83,7 +83,7 @@ $single-menu-height: 38px;
|
||||
// 存在三级子菜单
|
||||
.level1-menu {
|
||||
&.el-submenu.is-opened {
|
||||
border-bottom: solid 1px var(--color-border);
|
||||
border-top: solid 1px var(--color-border);
|
||||
}
|
||||
|
||||
&.el-submenu.is-active {
|
||||
|
Reference in New Issue
Block a user