pull/86/head
parent
478145c8e9
commit
d9a914d963
|
@ -184,7 +184,7 @@ export default {
|
||||||
},
|
},
|
||||||
//获取设备
|
//获取设备
|
||||||
getEqbyid() {
|
getEqbyid() {
|
||||||
var userInfo = JSON.parse(localStorage.getItem('userInfo'))
|
var userInfo =localStorage.getItem('userInfo')? JSON.parse(localStorage.getItem('userInfo')):{userid:-1}
|
||||||
this.api.getEqbyid(userInfo.userid).then((res) => {
|
this.api.getEqbyid(userInfo.userid).then((res) => {
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
this.$store.state.equipmentList = res.data.data.map((item, index) => {
|
this.$store.state.equipmentList = res.data.data.map((item, index) => {
|
||||||
|
|
Loading…
Reference in New Issue