Navigation contraction doesn't work, but it works after F5 refreshes the page.

clipboard.png

clipboard.png

as shown in the figure, the control navigation of this button shrinks.

1. As soon as the page opens (that is, after logging in), this button doesn"t work at all.

2. But after the F5 refresh, this button works.

3. So I tested the code locally on HTML, and it was normal whether it was refreshed or not.

4. But in vue-cli, it only works after the F5 is refreshed.

5. My js is in main.js

//bootstrap
import "@/assets/js/jquery.min.js" 
import "@/assets/js/bootstrap.min.js" 
// + 
import "@/assets/js/jquery.metisMenu.js"
import "@/assets/js/jquery.slimscroll.min.js"
import "@/assets/js/inspinia.js"
import "@/assets/js/pace.min.js"

is this a loading problem with js?


1. You can first try to modify the order of import
2. Try adding script


to the html field to paste the code of the button click event and the code at the navigation


use vue-router, right? Is
version 3.x?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8c807-10de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8c807-10de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?