I have single page application on Vuejs and main page is on localhost/. I want make admin panel. I created new component Bots and route for it 'localhost/panel/bots'. When I open this page I recived an error
http://localhost/panel/index.js
because I have link on app
<script type="text/javascript" src="index.js"></script>
in my main template.
How to resolve this issue? Thanks!
Change to
<script type="text/javascript" src="/index.js"></script>
this will make your browser load index.js
from root /
catalog, not /panel
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.