增加自动化代码图片功能

This commit is contained in:
piexlMax
2023-06-08 23:17:46 +08:00
parent 92b78ab3c8
commit d2d7b22a8f
9 changed files with 323 additions and 57 deletions
+3
View File
@@ -90,3 +90,6 @@ export default class ImageCompress {
return new Blob([ab], { type: mimeString, lastModifiedDate: new Date() })
}
}
const path = import.meta.env.VITE_BASE_API + '/'
export const getUrl = (url) => url && url.slice(0, 4) !== 'http' ? path + url : url