fix: 修复子路径部署静态资源引用
- 修复 admin 与 usercenter 登录验证码资源在 /flow 子路径下的加载路径 - 统一 logo、空状态图、兜底头像与模型服务商图标的 BASE_URL 处理 - 补齐 usercenter 公共布局与 loading 注入的子路径兼容
This commit is contained in:
@@ -14,6 +14,7 @@ defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
const emptyImageUrl = `${import.meta.env.BASE_URL || '/'}empty.png`;
|
||||
const themeMode = ref(preferences.theme.mode);
|
||||
watch(
|
||||
() => preferences.theme.mode,
|
||||
@@ -26,7 +27,7 @@ watch(
|
||||
<template>
|
||||
<div class="res-container">
|
||||
<JsonViewer v-if="value" :value="value" copyable :theme="themeMode" />
|
||||
<ElEmpty image="/empty.png" v-else />
|
||||
<ElEmpty :image="emptyImageUrl" v-else />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ const props = withDefaults(defineProps<PageDataProps>(), {
|
||||
pageSizes: () => [10, 20, 50, 100],
|
||||
extraQueryParams: () => ({}),
|
||||
});
|
||||
const emptyImageUrl = `${import.meta.env.BASE_URL || '/'}empty.png`;
|
||||
|
||||
// 响应式数据
|
||||
const pageList = ref([]);
|
||||
@@ -119,6 +120,6 @@ onMounted(() => {
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<ElEmpty image="/empty.png" v-else />
|
||||
<ElEmpty :image="emptyImageUrl" v-else />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user