fix: yarn spinner runner
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user