[Vuejs]-How can I read the js script in Vue/Quasar

-1👍

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', 'https://widget.freshworks.com/widgets/') 
document.head.appendChild(widgetScript) 

Just look at this answer

👤Marco

0👍

<script type="text/javascript" :src="'https://widget.freshworks.com/widgets/' + widget_id + '.js'" async defer/>

Leave a comment