fix(plantuml): correct cache

This commit is contained in:
purocean
2024-11-22 21:15:58 +08:00
parent 8e2a1ac0c2
commit ea2dce3ba1
+1 -1
View File
@@ -99,7 +99,7 @@ export default async function (data: string): Promise<{ content: any, type: stri
} else {
const url = api.replace('{data}', plantumlBase64(data))
const dispatcher = await getAction('get-proxy-dispatcher')(url)
let type = ''
let type = api.includes('/svg/') ? 'image/svg+xml' : 'image/png'
const cacheKey = getCacheKey(api, type, data)
const content = await getCacheData(cacheKey, async () => {