fix(theme): 修复主题加载错误
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user