feat(core): 将goog.get接口调整为goog.readJsonSync以指示其同步操作特性
This commit is contained in:
@@ -77,7 +77,7 @@ class FooterLayerExampleExt extends FooterLayerExample {
|
||||
}
|
||||
|
||||
dataToWorkspace(inPath) {
|
||||
const data = goog.get(path.join(Env.boardDirPath, 'examples', inPath));
|
||||
const data = goog.readFileSync(path.join(Env.boardDirPath, 'examples', inPath));
|
||||
this.updateCode(path.extname(inPath), data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user