Merge branch 'tristan-wip' of https://gitea.clubconjure.com/Conjure/conjure-os into tristan-wip
This commit is contained in:
commit
d246b5cd3d
@ -13,17 +13,17 @@
|
|||||||
import { ref, watch } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import { ImageManager } from "../utils/image-manager";
|
import { ImageManager } from "../utils/image-manager";
|
||||||
|
|
||||||
defineProps<{
|
const props = defineProps<{
|
||||||
key: string
|
key: string
|
||||||
src: string
|
src: string
|
||||||
alt: string
|
alt: string
|
||||||
}>()
|
}>();
|
||||||
|
|
||||||
const blobUrl = ref<string | null>(null);
|
const blobUrl = ref<string | null>(null);
|
||||||
|
|
||||||
watch(() => props.imageUrl, async (newUrl) => {
|
watch(() => props.src, async (newUrl) => {
|
||||||
blobUrl.value = await ImageManager.getBlob(key, newUrl);
|
console.log(newUrl);
|
||||||
|
blobUrl.value = await ImageManager.getImage(props.key, newUrl);
|
||||||
|
console.log(blobUrl.value);
|
||||||
}, { immediate: true });
|
}, { immediate: true });
|
||||||
|
|
||||||
console.log(src)
|
|
||||||
</script>
|
</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