Skip to content

Commit cbee152

Browse files
fix: Fix history display errors
1 parent bc26024 commit cbee152

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

ui/src/stores/modules/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const useUserStore = defineStore('user', {
8686
return this.edition != 'CE' && !this.license_is_valid
8787
},
8888
isCE() {
89-
return this.edition == 'CE' && this.license_is_valid
89+
return this.edition == 'CE'
9090
},
9191
isPE() {
9292
return this.edition == 'PE' && this.license_is_valid

ui/src/views/application-overview/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ import { MsgSuccess, MsgConfirm } from '@/utils/message'
207207
import { copyClick } from '@/utils/clipboard'
208208
import { resetUrl } from '@/utils/common'
209209
import { mapToUrlParams } from '@/utils/application'
210-
import useStore from '@/stores'
211210
import { t } from '@/locales'
212211
import { EditionConst } from '@/utils/permission/data'
213212
import { hasPermission } from '@/utils/permission/index'

ui/src/views/chat/component/HistoryPanel.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@
111111
<template #title>{{ $t('chat.createChat') }}</template>
112112
</el-menu-item>
113113

114-
<el-sub-menu v-show="isPcCollapse" index="2" v-if="applicationDetail.show_history || user.isCE()">
114+
<el-sub-menu
115+
v-show="isPcCollapse"
116+
index="2"
117+
v-if="applicationDetail.show_history || user.isCE()"
118+
>
115119
<template #title>
116120
<AppIcon iconName="app-history-outlined" />
117121
</template>
@@ -171,9 +175,9 @@
171175
import { ref } from 'vue'
172176
import { isAppIcon } from '@/utils/common'
173177
import EditTitleDialog from './EditTitleDialog.vue'
174-
import useStore from "@/stores";
178+
import useStore from '@/stores'
175179
176-
const {user} = useStore()
180+
const { user } = useStore()
177181
const props = defineProps<{
178182
applicationDetail: any
179183
chatLogData: any[]

0 commit comments

Comments
 (0)