fix: yarn spinner runner

This commit is contained in:
2026-03-02 17:54:40 +08:00
parent 0594fef9ac
commit a02edabc41
3 changed files with 46 additions and 189 deletions
+3 -1
View File
@@ -6,6 +6,7 @@
* @returns 解析后的路径
*/
export function resolvePath(base: string, relative: string): string {
if(!relative) return relative;
if (relative.startsWith('/')) {
return relative;
}
@@ -39,7 +40,8 @@ export function resolvePath(base: string, relative: string): string {
}
export function loadElementSrc(element?: { textContent: string, closest: (arg0: string) => HTMLElement }){
// export function loadElementSrc(element?: { textContent: string, closest: (arg0: string) => HTMLElement }){
export function loadElementSrc(element?: any | HTMLElement){
const rawSrc = element?.textContent;
if(element) element.textContent = "";