How can I read the js script in Vue/Quasar

Example Code:

<script type="text/javascript" src="<widget_id>.js" async defer></script>

I want to add to Quasar Framework and use the js in Vue. Any idea to add? Example I want to add inside this script in Quasar:

export default {


  • I had the same issue. In my case I added the script to my component via the mounted method.

    let widgetScript = document.createElement('script')
    widgetScript.setAttribute('src', '') 

    Just look at this answer