解决多租户导致设备不显示问题

This commit is contained in:
kerwincui
2022-05-18 20:56:53 +08:00
parent 86940906ca
commit 7e00d8c0d6

View File

@@ -452,9 +452,9 @@ export default {
this.queryParams.params["endActiveTime"] = this.daterangeActiveTime[1];
}
// 判断是否是admin角色
if (this.$store.state.user.roles.indexOf("admin") === -1) {
this.queryParams.userId = this.$store.state.user.userId
}
// if (this.$store.state.user.roles.indexOf("admin") === -1) {
// this.queryParams.userId = this.$store.state.user.userId
// }
listDeviceShort(this.queryParams).then(response => {
this.deviceList = response.rows;
this.total = response.total;