Commit 5882a61c authored by miaojiale's avatar miaojiale

params传参

parent ecfd95e6
......@@ -134,7 +134,8 @@ export default {
}
},
mounted() {
this.dataId = this.$route.query.dataId
console.log(this.$route);
this.dataId = this.$route.params.dataId
if (this.dataId) {
this.getData()
}
......
......@@ -14,7 +14,7 @@ const page = [
component: () => import("@/pages/login")
},
{
path: "/feedback",
path: `/feedback/:dataId`,
meta: { index: 2, keepAlive: false },
name: "feedback",
component: () => import("@/pages/feedback")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment