First, the problem
Error screenshot:
When I called another component from one component, I suddenly reported this error. Obviously, it is used normally outside. Why is it called wrong in the component? ? ?
Component call:
The call in the component is not the same as the call to the outside vue page. Why will the registration fail? ? ?
When I print the obtained TableCom on the page, it prints an undefined. What? ? ? Why won't you get it?
Second, solve
After some inspection, I finally found the reason in the page of exporting components
It turns out that the TableCom component is under the Question component, so only TableCom cannot be obtained.
note:
1. If one component refers to another component, the referenced component must be placed in front of the referenced component, otherwise the registration will fail due to the order of registration
2. You can directly introduce the vue page of another component into the component