This commit is contained in:
邹景立 2021-12-01 22:13:54 +08:00
parent f6d5742b24
commit 7c7c6619b9

View File

@ -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 () => {