revert: 所有代码与custom/common分支同
This commit is contained in:
@@ -110,7 +110,8 @@ class ConfigExternal {
|
||||
|
||||
try {
|
||||
// 动态加载主题配置
|
||||
const themeData = require(`@/common/js/style_color.js`)[theme];
|
||||
const themeData = require(`@/common/js/style_color.js`)['default'][theme];
|
||||
console.log('sync themeData => ', themeData);
|
||||
this.loadedConfigs[`theme_${theme}`] = themeData;
|
||||
return themeData;
|
||||
} catch (error) {
|
||||
@@ -136,7 +137,8 @@ class ConfigExternal {
|
||||
this.loadPromises[`theme_${theme}`] = new Promise((resolve, reject) => {
|
||||
try {
|
||||
// 动态加载主题配置
|
||||
const themeData = require(`@/common/js/style_color.js`)[theme];
|
||||
const themeData = require(`@/common/js/style_color.js`)['default'][theme];
|
||||
console.log('async themeData => ', themeData);
|
||||
this.loadedConfigs[`theme_${theme}`] = themeData;
|
||||
resolve(themeData);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user