mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
perf: 优化 ai chat bot
This commit is contained in:
@@ -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%;
|
||||||
|
@@ -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: {
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user