test
This commit is contained in:
@@ -43,17 +43,21 @@ const props = defineProps({
|
||||
type: String,
|
||||
default: "lazy" // eager, lazy
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
const refinedSrc = computed(() => {
|
||||
console.log(props.src);
|
||||
if (props.src?.startsWith("/") && !props.src.startsWith("//")) {
|
||||
const _base = withLeadingSlash(withTrailingSlash(useRuntimeConfig().app.baseURL))
|
||||
const _base = withLeadingSlash(withTrailingSlash(useRuntimeConfig().app.baseURL));
|
||||
console.log("base: " + _base);
|
||||
if (_base !== "/" && !props.src.startsWith(_base)) {
|
||||
return joinURL(_base, props.src)
|
||||
console.log("@@@: " + joinURL(_base, props.src));
|
||||
return joinURL(_base, props.src);
|
||||
}
|
||||
}
|
||||
return props.src
|
||||
})
|
||||
console.log("<><><><>");
|
||||
return props.src;
|
||||
});
|
||||
</script>
|
||||
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user