Exporting camera results from capacitor to Vue.js

Hi There,
I am trying to export the camera result to Vue.

I am using capacitor, I know it should be a pretty easy solution but I am not able to figure this out.
the imageUrl varible is storing the image uri.

Many thanks :slight_smile:

export function usePhotoGallery() {
    const { Camera } = Plugins;
  
    const takePhoto = async () => {
      const cameraPhoto = await Camera.getPhoto({
        resultType: CameraResultType.Uri,
        source: CameraSource.Camera,
        quality: 100,
 
      });
    
      console.log(cameraPhoto.webPath)
       var imageUrl = cameraPhoto.webPath 
        console.log(imageUrl)
   
    };
  
    return {
    
      takePhoto, 
    };
   
  }