Dodawanie podpisu do vue-signature-pad z php base64

0

Witajcie,
robię mini projekcik w vue 2 i napotkałem na problem :/

Tutaj jest pełen kod: https://pastebin.com/APDLa1mM

Kiedy próbuję załadować kod z php:

async mounted() {
    let self = this;
    fetch(
      this.$apiAdress + '/api/tasks/getTaskSignature/' + self.$route.params.id + '?token=' + localStorage.getItem("api_token")
    )
      .then((raw) => raw.blob())
      .then((blob) => {
        const reader = new FileReader();
        reader.readAsDataURL(blob);
        reader.onloadend = () => { console.log(reader.result);
          this.$refs.signaturePad.fromDataURL(reader.result);
        };
      });
  },

w rezultacie otrzymuję taki string: https://pastebin.com/rxj5wB6e

Kiedy uruchamiam stronę otrzymuję błąd:

[Vue warn]: Error in mounted hook: "ReferenceError: Can't find variable: regeneratorRuntime"

found in

---> <EditTask> at src/views/task/EditTask.vue
       <Anonymous>
         <CWrapper>
           <TheContainer> at src/containers/TheContainer.vue
             <App> at src/App.vue
               <Root>


ReferenceError: Can't find variable: regeneratorRuntime

Finalnie chciałbym wyświetlić w signature in vue-signature-pad podpis pobrany z php:

<vue-signature-pad
                          id="signature"
                          width="100%"
                          height="500px"
                          ref="signaturePad"
                          :options="{
                            onBegin: () => {$refs.signaturePad.resizeCanvas()},
                        }"
                        />

Wie ktoś może jak to zrobić?

1 użytkowników online, w tym zalogowanych: 0, gości: 1