diff --git a/static/app.js b/static/app.js index e1dde7560..f00baf238 100644 --- a/static/app.js +++ b/static/app.js @@ -1,7 +1,6 @@ /*! 项目应用根路径 */ window.appRoot = (function (script) { - let src = script.src.split('/').slice(3); - return src.pop(), src.pop(), '/' + src.join('/') + '/'; + return '/' + script.src.split('/').slice(3, -2).join('/') + '/'; })(document.querySelector('script[src][type=module]:last-child')); ;(async () => {