vue-router "path" is required in a route configuration

When dynamic routing is enabled, this error has been prompted all the time, and the page is also blank when opened. Later, it was found that the component parameter was wrong.
The correct spelling is:

component: () => import ('@/views/own-space/own-space.vue')

I wrongly wrote:

component:  import ('@/views/own-space/own-space.vue')

I think that import is enough, it should be that the component in vue-router is required to be a component instance or function.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325909195&siteId=291194637