diff --git a/assets/js/joe.global.js b/assets/js/joe.global.js index 2638a9c..acf95e5 100644 --- a/assets/js/joe.global.js +++ b/assets/js/joe.global.js @@ -44,7 +44,7 @@ document.addEventListener('DOMContentLoaded', () => { /* 动态背景 */ { if (!Joe.IS_MOBILE && Joe.DYNAMIC_BACKGROUND !== 'off' && Joe.DYNAMIC_BACKGROUND && !Joe.WALLPAPER_BACKGROUND_PC) { - $.getScript(`/usr/themes/Joe/assets/backdrop/${Joe.DYNAMIC_BACKGROUND}`); + $.getScript(window.Joe.THEME_URL + `assets/backdrop/${Joe.DYNAMIC_BACKGROUND}`); } } @@ -500,16 +500,17 @@ document.addEventListener('DOMContentLoaded', () => { { if ($('.joe_owo__contain').length > 0 && $('.joe_owo__target').length > 0) { $.ajax({ - url: '/usr/themes/Joe/assets/json/joe.owo.json', + url: window.Joe.THEME_URL + 'assets/json/joe.owo.json', dataType: 'json', success(res) { let barStr = ''; let scrollStr = ''; for (let key in res) { - barStr += `
${key}
`; + const item = res[key]; + barStr += `
${key}
`; scrollStr += ` -