File tree Expand file tree Collapse file tree 4 files changed +31
-11
lines changed
components/ai-chat/component/answer-content Expand file tree Collapse file tree 4 files changed +31
-11
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,7 @@ function showSource(row: any) {
148148 if (props .type === ' log' ) {
149149 return true
150150 } else if (row .write_ed && 500 !== row .status ) {
151- if (
152- props .type === ' debug-ai-chat' ||
153- props .application ?.show_source ||
154- props .application ?.show_exec
155- ) {
151+ if (props .type === ' debug-ai-chat' ) {
156152 return true
157153 }
158154 }
Original file line number Diff line number Diff line change 11<template >
22 <div class =" app-layout" >
33 <div class =" app-header" :class =" !isDefaultTheme ? 'custom-header' : ''" >
4+ <el-alert
5+ v-if =" user.isExpire()"
6+ :title =" $t('layout.isExpire')"
7+ type =" warning"
8+ class =" border-b"
9+ show-icon
10+ :closable =" false"
11+ />
412 <SystemHeader v-if =" isShared" ></SystemHeader >
513 <UserHeader v-else />
614 </div >
7- <div class =" app-main" >
15+ <div class =" app-main" :class = " user.isExpire() ? 'isExpire' : '' " >
816 <layout-container >
917 <template #left >
1018 <Sidebar />
@@ -30,7 +38,7 @@ const {
3038const isShared = computed (() => {
3139 return folderId === ' shared' || type === ' systemShare'
3240})
33- const { theme } = useStore ()
41+ const { theme, user } = useStore ()
3442const isDefaultTheme = computed (() => {
3543 return theme .isDefaultTheme ()
3644})
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import AppMain from '@/layout/app-main/index.vue'
66import useStore from ' @/stores'
77import { useRoute } from ' vue-router'
88const route = useRoute ()
9- const { theme } = useStore ()
9+ const { theme, user } = useStore ()
1010const isDefaultTheme = computed (() => {
1111 return theme .isDefaultTheme ()
1212})
@@ -22,10 +22,18 @@ const isShared = computed(() => {
2222<template >
2323 <div class =" app-layout" >
2424 <div class =" app-header" :class =" !isDefaultTheme ? 'custom-header' : ''" >
25+ <el-alert
26+ v-if =" user.isExpire()"
27+ :title =" $t('layout.isExpire')"
28+ type =" warning"
29+ class =" border-b"
30+ show-icon
31+ :closable =" false"
32+ />
2533 <SystemHeader v-if =" isShared" ></SystemHeader >
2634 <UserHeader v-else />
2735 </div >
28- <div class =" app-main" >
36+ <div class =" app-main" :class = " user.isExpire() ? 'isExpire' : '' " >
2937 <AppMain />
3038 </div >
3139 </div >
Original file line number Diff line number Diff line change 11<template >
22 <div class =" app-layout" >
33 <div class =" app-header" :class =" !isDefaultTheme ? 'custom-header' : ''" >
4+ <el-alert
5+ v-if =" user.isExpire()"
6+ :title =" $t('layout.isExpire')"
7+ type =" warning"
8+ class =" border-b"
9+ show-icon
10+ :closable =" false"
11+ />
412 <SystemHeader />
513 </div >
6- <div class =" app-main" >
14+ <div class =" app-main" :class = " user.isExpire() ? 'isExpire' : '' " >
715 <layout-container >
816 <template #left >
917 <Sidebar />
@@ -19,7 +27,7 @@ import SystemHeader from '@/layout/layout-header/SystemHeader.vue'
1927import Sidebar from ' @/layout/components/sidebar/index.vue'
2028import AppMain from ' @/layout/app-main/index.vue'
2129import useStore from ' @/stores'
22- const { theme } = useStore ()
30+ const { theme, user } = useStore ()
2331const isDefaultTheme = computed (() => {
2432 return theme .isDefaultTheme ()
2533})
You can’t perform that action at this time.
0 commit comments