fix(theme): 修复主题加载错误

This commit is contained in:
2025-12-30 10:59:23 +08:00
parent 26f8537d24
commit 3fec0470cf
2 changed files with 15 additions and 15 deletions

View File

@@ -110,7 +110,7 @@ class ConfigExternal {
try { try {
// 动态加载主题配置 // 动态加载主题配置
const themeData = require(`@/common/js/style_color.js`)[theme]; const themeData = require(`@/common/js/style_color.js`)['default'][theme];
this.loadedConfigs[`theme_${theme}`] = themeData; this.loadedConfigs[`theme_${theme}`] = themeData;
return themeData; return themeData;
} catch (error) { } catch (error) {

View File

@@ -252,7 +252,7 @@ const store = new Vuex.Store({
success: res => { success: res => {
var data = res.data; var data = res.data;
if (data) { if (data) {
this.commit('setThemeStyle', configExternal.loadThemeSync(data.style_theme.name)); this.commit('setThemeStyle', configExternal.loadThemeSync(data.style_theme?.name));
// 底部导航 // 底部导航
this.commit('setTabBarList', data.diy_bottom_nav); this.commit('setTabBarList', data.diy_bottom_nav);