设备详情接收参数方式修改

This commit is contained in:
xusd 2024-06-04 11:19:56 +08:00
parent 5c9ab34234
commit 744684c626

View File

@ -35,14 +35,18 @@
data() { data() {
return { return {
equipInfo: {}, equipInfo: {},
equipId: null
} }
}, },
created() { created() {
this.getEquipInfo(); this.getEquipInfo();
}, },
onLoad(opts) {
this.equipId = opts.equipId;
},
methods: { methods: {
getEquipInfo() { getEquipInfo() {
getEquipInfoById(this.$route.query.equipId).then((res) => { getEquipInfoById(this.equipId).then((res) => {
this.equipInfo = res.data; this.equipInfo = res.data;
}) })
}, },