mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
fix: expired tip
This commit is contained in:
parent
b299ef0c53
commit
f554205f87
|
|
@ -148,11 +148,7 @@ function showSource(row: any) {
|
|||
if (props.type === 'log') {
|
||||
return true
|
||||
} else if (row.write_ed && 500 !== row.status) {
|
||||
if (
|
||||
props.type === 'debug-ai-chat' ||
|
||||
props.application?.show_source ||
|
||||
props.application?.show_exec
|
||||
) {
|
||||
if (props.type === 'debug-ai-chat') {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,18 @@
|
|||
<template>
|
||||
<div class="app-layout">
|
||||
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
||||
<el-alert
|
||||
v-if="user.isExpire()"
|
||||
:title="$t('layout.isExpire')"
|
||||
type="warning"
|
||||
class="border-b"
|
||||
show-icon
|
||||
:closable="false"
|
||||
/>
|
||||
<SystemHeader v-if="isShared"></SystemHeader>
|
||||
<UserHeader v-else />
|
||||
</div>
|
||||
<div class="app-main">
|
||||
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''">
|
||||
<layout-container>
|
||||
<template #left>
|
||||
<Sidebar />
|
||||
|
|
@ -30,7 +38,7 @@ const {
|
|||
const isShared = computed(() => {
|
||||
return folderId === 'shared' || type === 'systemShare'
|
||||
})
|
||||
const { theme } = useStore()
|
||||
const { theme, user } = useStore()
|
||||
const isDefaultTheme = computed(() => {
|
||||
return theme.isDefaultTheme()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import AppMain from '@/layout/app-main/index.vue'
|
|||
import useStore from '@/stores'
|
||||
import { useRoute } from 'vue-router'
|
||||
const route = useRoute()
|
||||
const { theme } = useStore()
|
||||
const { theme, user } = useStore()
|
||||
const isDefaultTheme = computed(() => {
|
||||
return theme.isDefaultTheme()
|
||||
})
|
||||
|
|
@ -22,10 +22,18 @@ const isShared = computed(() => {
|
|||
<template>
|
||||
<div class="app-layout">
|
||||
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
||||
<el-alert
|
||||
v-if="user.isExpire()"
|
||||
:title="$t('layout.isExpire')"
|
||||
type="warning"
|
||||
class="border-b"
|
||||
show-icon
|
||||
:closable="false"
|
||||
/>
|
||||
<SystemHeader v-if="isShared"></SystemHeader>
|
||||
<UserHeader v-else />
|
||||
</div>
|
||||
<div class="app-main">
|
||||
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''">
|
||||
<AppMain />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,17 @@
|
|||
<template>
|
||||
<div class="app-layout">
|
||||
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
||||
<el-alert
|
||||
v-if="user.isExpire()"
|
||||
:title="$t('layout.isExpire')"
|
||||
type="warning"
|
||||
class="border-b"
|
||||
show-icon
|
||||
:closable="false"
|
||||
/>
|
||||
<SystemHeader />
|
||||
</div>
|
||||
<div class="app-main">
|
||||
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''">
|
||||
<layout-container>
|
||||
<template #left>
|
||||
<Sidebar />
|
||||
|
|
@ -19,7 +27,7 @@ import SystemHeader from '@/layout/layout-header/SystemHeader.vue'
|
|||
import Sidebar from '@/layout/components/sidebar/index.vue'
|
||||
import AppMain from '@/layout/app-main/index.vue'
|
||||
import useStore from '@/stores'
|
||||
const { theme } = useStore()
|
||||
const { theme, user } = useStore()
|
||||
const isDefaultTheme = computed(() => {
|
||||
return theme.isDefaultTheme()
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue