Vue-cli uses the front-end UI template, and the UI template js file is introduced into index.html. The click event of the element is invalid.

I used vue-cli and a set of front-end templates, and I introduced the template"s js files together in vue-cli "s index.html. The sidebar of the template is included in the parent component of the page as a component. But the menu element click event in the sidebar has no effect.
guess:
my side menu bar is traversed with v-for, whether it is due to dynamically generated nodes that are not bound to events.

Mar.13,2022

since you are bringing in developers, why do you need to use vue-cli? You directly npm i ui framework-- save-dev and then in vue-cli main.js import ui framework from'ui framework 'Vue.use (ui framework) isn't that OK? For a simple example, use iview , first npm install iview-- save-dev , in main.js import iview from 'iview',Vue.use (iview) . For your question, you still need to provide the code to know what the problem is.

Menu