<img
class="logo-srkg"
:src="getImgUrl('hwtm.png')"
alt=""
/>
const getImgUrl = (src: string): string => {
return new URL(`../assets/res-kg/${src}`, import.meta.url).href;
};
标签:src,Vue,string,地址,vue,动态
From: https://www.cnblogs.com/cqkjxxxx/p/16798138.html