perf: 优化 ai chat bot

This commit is contained in:
ibuler
2024-05-31 15:17:03 +08:00
parent 024e4a1d96
commit bbee6cafdf
3 changed files with 6 additions and 3 deletions

View File

@@ -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%;

View File

@@ -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: {

View File

@@ -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 {