Skip to content

Commit

Permalink
fix(#793): 修复空值
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Aug 15, 2022
1 parent 258e206 commit 302c98f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion layout/_partial/scripts/_ctrl/cdnCtrl.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
const element = n[key];
if(element && typeof element !="string"){
dfs(element,path.concat(key))
}else{
}else if(element){
let op=path.concat(key)
let source=""
for (let index = 1; index < op.length; index++) {
Expand Down Expand Up @@ -122,5 +122,6 @@
// ?time=' + Date.now() 替换为 theme.getStartTime 保证相同资源 hash 不变
// 更新:
// 本地文件使用文件内容的hash值作为版本号 app.8c1e7c88.js see: /scripts/helpers/revisioned.js
dfs(theme.cdn.set,[])
_%>
2 changes: 1 addition & 1 deletion scripts/helpers/revisioned.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const replaceRevisionPlaceholder = async () => {
})
);
} catch (error) {

hexo.log.error("cdn_version ERROR: " + error);
}
};

Expand Down

0 comments on commit 302c98f

Please sign in to comment.