Dynamic routing is defined Vue-router, access pass over the dynamic parameters

Setting: In index.js file in the directory router for path attributes plus /: id

Acquire: Use router object params.id

Guess you like

Origin www.cnblogs.com/rabbitstudent/p/11722953.html