erdkse / adminlte-3-vue

Vue 3.4.27 start-up project with AdminLTE 3.2.0 template
https://erdkse.com/projects/preview/adminlte-vue
MIT License
248 stars 115 forks source link

Dropdown submenu not working #13

Closed gluttm closed 3 years ago

gluttm commented 3 years ago

first, thank you for the work, menu submenu dropdown is not working, is there a soluction?

mauriciopfl commented 3 years ago

Hello, I had the same problem and solved it with the following steps:

  1. I downloaded the latest version of Admin-lte3 directly from the official website https://github.com/ColorlibHQ/AdminLTE/releases

  2. I copied the files (dist/js/adminlte.js and dist/js/demo.js) to my vue project folder ./assets/js/ image

  3. install jquery on your vue project ( yarn add jquery or npm install jquery)

  4. change the demo.js file and add the line: var jQuery = require ('jquery'); like this:
    image

  5. in the Main.vue file add inside the script: require ('../ assets / js / adminlte') require ('../ assets / js / demo')

image

It worked for me, I hope it works for you too

erdkse commented 3 years ago

Fixed!