fix: 修复管理端静态资源基础路径
- 统一内置品牌资源与空状态图片的 BASE_URL 解析 - 应用启动时自动归一化历史偏好里的内置资源路径 - 多个空状态组件改为复用公共资源地址工具
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import { initPreferences } from '@easyflow/preferences';
|
||||
import { initPreferences, preferences, updatePreferences } from '@easyflow/preferences';
|
||||
import { unmountGlobalLoading } from '@easyflow/utils';
|
||||
|
||||
import { overridesPreferences } from './preferences';
|
||||
import {
|
||||
normalizeBrandAssetPreferences,
|
||||
overridesPreferences,
|
||||
} from './preferences';
|
||||
|
||||
/**
|
||||
* 应用初始化完成之后再进行页面加载渲染
|
||||
@@ -19,6 +22,11 @@ async function initApplication() {
|
||||
overrides: overridesPreferences,
|
||||
});
|
||||
|
||||
const { changed, normalized } = normalizeBrandAssetPreferences(preferences);
|
||||
if (changed) {
|
||||
updatePreferences(normalized);
|
||||
}
|
||||
|
||||
// 启动应用并挂载
|
||||
// vue应用主要逻辑及视图
|
||||
const { bootstrap } = await import('./bootstrap');
|
||||
|
||||
Reference in New Issue
Block a user