this.$router.push({path:'/',query:{curDate:JSON.stringify(this.theMonth)}})
new Date(JSON.parse(this.$route.query.curDate))
先转为json字符串,接收后转为json对象
不转为json字符串是不可以用$route.query来接收的
版权声明:本文为weixin_41254345原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。