diff --git a/pages/work/equipInfo/detailsEquipInfo.vue b/pages/work/equipInfo/detailsEquipInfo.vue index 41df749..0924da6 100644 --- a/pages/work/equipInfo/detailsEquipInfo.vue +++ b/pages/work/equipInfo/detailsEquipInfo.vue @@ -35,14 +35,18 @@ data() { return { equipInfo: {}, + equipId: null } }, created() { this.getEquipInfo(); }, + onLoad(opts) { + this.equipId = opts.equipId; + }, methods: { getEquipInfo() { - getEquipInfoById(this.$route.query.equipId).then((res) => { + getEquipInfoById(this.equipId).then((res) => { this.equipInfo = res.data; }) },