fix: expired tip
This commit is contained in:
parent
b299ef0c53
commit
f554205f87
@ -148,11 +148,7 @@ function showSource(row: any) {
|
|||||||
if (props.type === 'log') {
|
if (props.type === 'log') {
|
||||||
return true
|
return true
|
||||||
} else if (row.write_ed && 500 !== row.status) {
|
} else if (row.write_ed && 500 !== row.status) {
|
||||||
if (
|
if (props.type === 'debug-ai-chat') {
|
||||||
props.type === 'debug-ai-chat' ||
|
|
||||||
props.application?.show_source ||
|
|
||||||
props.application?.show_exec
|
|
||||||
) {
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-layout">
|
<div class="app-layout">
|
||||||
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
<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>
|
<SystemHeader v-if="isShared"></SystemHeader>
|
||||||
<UserHeader v-else />
|
<UserHeader v-else />
|
||||||
</div>
|
</div>
|
||||||
<div class="app-main">
|
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''">
|
||||||
<layout-container>
|
<layout-container>
|
||||||
<template #left>
|
<template #left>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
@ -30,7 +38,7 @@ const {
|
|||||||
const isShared = computed(() => {
|
const isShared = computed(() => {
|
||||||
return folderId === 'shared' || type === 'systemShare'
|
return folderId === 'shared' || type === 'systemShare'
|
||||||
})
|
})
|
||||||
const { theme } = useStore()
|
const { theme, user } = useStore()
|
||||||
const isDefaultTheme = computed(() => {
|
const isDefaultTheme = computed(() => {
|
||||||
return theme.isDefaultTheme()
|
return theme.isDefaultTheme()
|
||||||
})
|
})
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import AppMain from '@/layout/app-main/index.vue'
|
|||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const { theme } = useStore()
|
const { theme, user } = useStore()
|
||||||
const isDefaultTheme = computed(() => {
|
const isDefaultTheme = computed(() => {
|
||||||
return theme.isDefaultTheme()
|
return theme.isDefaultTheme()
|
||||||
})
|
})
|
||||||
@ -22,10 +22,18 @@ const isShared = computed(() => {
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-layout">
|
<div class="app-layout">
|
||||||
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
<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>
|
<SystemHeader v-if="isShared"></SystemHeader>
|
||||||
<UserHeader v-else />
|
<UserHeader v-else />
|
||||||
</div>
|
</div>
|
||||||
<div class="app-main">
|
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''">
|
||||||
<AppMain />
|
<AppMain />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,9 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-layout">
|
<div class="app-layout">
|
||||||
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
<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 />
|
<SystemHeader />
|
||||||
</div>
|
</div>
|
||||||
<div class="app-main">
|
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''">
|
||||||
<layout-container>
|
<layout-container>
|
||||||
<template #left>
|
<template #left>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
@ -19,7 +27,7 @@ import SystemHeader from '@/layout/layout-header/SystemHeader.vue'
|
|||||||
import Sidebar from '@/layout/components/sidebar/index.vue'
|
import Sidebar from '@/layout/components/sidebar/index.vue'
|
||||||
import AppMain from '@/layout/app-main/index.vue'
|
import AppMain from '@/layout/app-main/index.vue'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
const { theme } = useStore()
|
const { theme, user } = useStore()
|
||||||
const isDefaultTheme = computed(() => {
|
const isDefaultTheme = computed(() => {
|
||||||
return theme.isDefaultTheme()
|
return theme.isDefaultTheme()
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user