fix: 修复管理端静态资源基础路径
- 统一内置品牌资源与空状态图片的 BASE_URL 解析 - 应用启动时自动归一化历史偏好里的内置资源路径 - 多个空状态组件改为复用公共资源地址工具
This commit is contained in:
@@ -23,6 +23,7 @@ import { getBotDetails, getSessionList } from '#/api';
|
||||
import BotAvatar from '#/components/botAvatar/botAvatar.vue';
|
||||
import Chat from '#/components/chat/chat.vue';
|
||||
import { $t } from '#/locales';
|
||||
import { getEmptyStateImageUrl } from '#/utils/assets';
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -132,7 +133,7 @@ const updateActive = (_sessionId?: number | string) => {
|
||||
@update:active="updateActive"
|
||||
/>
|
||||
<ElEmpty
|
||||
:image="`/empty${preferences.theme.mode === 'dark' ? '-dark' : ''}.png`"
|
||||
:image="getEmptyStateImageUrl(preferences.theme.mode)"
|
||||
v-show="sessionList.length === 0"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -7,6 +7,7 @@ import { ElEmpty, ElMessage, ElRow } from 'element-plus';
|
||||
|
||||
import ShowJson from '#/components/json/ShowJson.vue';
|
||||
import { $t } from '#/locales';
|
||||
import { getEmptyStateImageUrl } from '#/utils/assets';
|
||||
import ExecResultItem from '#/views/ai/workflow/components/ExecResultItem.vue';
|
||||
|
||||
export interface ExecResultProps {
|
||||
@@ -87,7 +88,7 @@ function getResult(res: any) {
|
||||
</div>
|
||||
<div>
|
||||
<ElEmpty
|
||||
:image="`/empty${preferences.theme.mode === 'dark' ? '-dark' : ''}.png`"
|
||||
:image="getEmptyStateImageUrl(preferences.theme.mode)"
|
||||
v-if="!result"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user