banner
指数爆炸

指数爆炸

我做了对饭 !
github
bilibili

Abnormal Naming of Vue Files

E:\VScode\vue\vue_1\src\views\root\staff.vue
1:1 error Component name "staff" should always be multi-word vue/multi-word-component-names

Component name "staff" should always use multiple words. In Vue.js, it is recommended to use multi-word component names to avoid conflicts with HTML elements and improve code readability.

Solution#

  • You can change the component's name from "staff" to "StaffView". Make sure to update the component's definition and where it is used in the code accordingly.
  • Then, you need to restart the server, note, make sure to restart, restart, restart. Hot reload won't work here.
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.