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; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
padding: 15px 20px 0 20px; padding: 10px 10px 0 10px;
.ztree { .ztree {
width: 100%; width: 100%;

View File

@@ -5,7 +5,7 @@
<router-view :key="key" /> <router-view :key="key" />
</keep-alive> </keep-alive>
</transition> </transition>
<ChatGPT /> <ChatGPT v-if="chatAiEnabled" />
</section> </section>
</template> </template>
@@ -28,6 +28,9 @@ export default {
} else { } else {
return new Date().getTime() return new Date().getTime()
} }
},
chatAiEnabled() {
return this.publicSettings?.CHAT_AI_ENABLED
} }
}, },
methods: { methods: {

View File

@@ -83,7 +83,7 @@ $single-menu-height: 38px;
// 存在三级子菜单 // 存在三级子菜单
.level1-menu { .level1-menu {
&.el-submenu.is-opened { &.el-submenu.is-opened {
border-bottom: solid 1px var(--color-border); border-top: solid 1px var(--color-border);
} }
&.el-submenu.is-active { &.el-submenu.is-active {