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

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() {
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;
})
},