Skip to content

Commit

Permalink
feat: 主流程加载机制重构
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 24, 2023
1 parent 113bd28 commit f19a3c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
* @since 0.0.1
*/
const getCjsZhiDir = () => {
return `${window.siyuan.config.system.confDir}/appearance/themes/zhi/dist-cjs`
}
return `${window.siyuan.config.system.confDir}/appearance/themes/zhi/dist-cjs`
}

;(async () => {
const zhi = window.require(`${getCjsZhiDir()}/zhi-theme.js`)
// 主流程加载
await zhi.main([], async function(dynamicImports) {
await zhi.main([], async function (dynamicImports) {
for (const item of dynamicImports) {
console.log("开始加载=>", item)
await import(item)
Expand Down

0 comments on commit f19a3c7

Please sign in to comment.