banner
指数爆炸

指数爆炸

我做了对饭 !
github
bilibili

Abnormal Naming of Vue Files

Component name "staff" should always be multi-word. 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 that you must restart, restart, restart. Hot reload does not work here.
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.