test 2
This commit is contained in:
parent
0b0e6af52a
commit
f4e6226d5a
@ -13,17 +13,17 @@
|
||||
import { ref, watch } from "vue";
|
||||
import { ImageManager } from "../utils/image-manager";
|
||||
|
||||
defineProps<{
|
||||
const props = defineProps<{
|
||||
key: string
|
||||
src: string
|
||||
alt: string
|
||||
}>()
|
||||
}>();
|
||||
|
||||
const blobUrl = ref<string | null>(null);
|
||||
|
||||
watch(() => props.imageUrl, async (newUrl) => {
|
||||
blobUrl.value = await ImageManager.getBlob(key, newUrl);
|
||||
watch(() => props.src, async (newUrl) => {
|
||||
console.log(newUrl);
|
||||
blobUrl.value = await ImageManager.getImage(props.key, newUrl);
|
||||
console.log(blobUrl.value);
|
||||
}, { immediate: true });
|
||||
|
||||
console.log(src)
|
||||
</script>
|
||||
0
frontend/wailsjs/runtime/package.json
Executable file → Normal file
0
frontend/wailsjs/runtime/package.json
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.d.ts
vendored
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.d.ts
vendored
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.js
Executable file → Normal file
0
frontend/wailsjs/runtime/runtime.js
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user