Problems with template and vues

0

I downloaded an admin template from the internet and as usual, come various other css, js, plugins and so on. One of these files is for the template menu to leave li open with its sub-lis and highlighted in the active link. Because it is a file of the template itself, I am making the call in the index.html of vuejs and not giving import or require of the file in the component. As I am using the vue-router through the router-link, the page is not reloaded causing this file not to run. I have to manually refresh the page for the file to run again and the menu receive the relevant changes. How can I make this file to be called in every change of the url, which is included globally in index.html ( <script src="arquivo.js"></script> ).

    
asked by anonymous 26.03.2018 / 21:35

0 answers