vue.js中获取url值的方法:1、在【main.js】中写入【path: goodsinfo:goodsId】;2、在当前文件中设置代码为【<router-link :to="goodsinfo+ subitem