Main.js configuration error in vux framework

getting started with vux, encountered a problem here in router. Figure above:

clipboard.png

router/index.js

clipboard.png

main.js:
clipboard.png

:main.jsrouter/index.js

:router/index.jspathindex.vue
:main.jsrouter/index.jsmain.jsindex.jspathmain.jsrouter/index.js

::routes...

clipboard.png

clipboard.png

Apr.08,2022

main.js is the portal file and router/index.js is the routing configuration file, but why configure routing again in main.js? Just import the routing configuration into main.js.

Menu