feat(core): 将goog.get接口调整为goog.readJsonSync以指示其同步操作特性
This commit is contained in:
@@ -211,7 +211,7 @@ for (let i of XML.TEMPLATE_CONFIG) {
|
||||
generateDom
|
||||
} = i;
|
||||
if (XML.TEMPLATE_ENV[type]) {
|
||||
const xmlStr = goog.get(XML.TEMPLATE_DIR_PATH + path);
|
||||
const xmlStr = goog.readFileSync(XML.TEMPLATE_DIR_PATH + path);
|
||||
if (xmlStr) {
|
||||
XML.TEMPLATE_STR[type] = xmlStr;
|
||||
if (generateDom) {
|
||||
|
||||
Reference in New Issue
Block a user