优化代码

This commit is contained in:
wuxw 2024-04-17 21:06:32 +08:00
parent f807598bc0
commit 8913abe883

View File

@ -91,13 +91,12 @@
loadLoginOwner({ loadLoginOwner({
communityId:getCommunityId() communityId:getCommunityId()
}).then(function(_ownerInfo) { }).then(function(_ownerInfo) {
console.log(_ownerInfo)
if (_ownerInfo) { if (_ownerInfo) {
let _active = _ownerInfo.state == '10000' ? 1 : 2; let _active = _ownerInfo.state == '10000' ? 1 : 2;
_that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName; _that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName;
_that.communityId = _ownerInfo.communityId; _that.communityId = _ownerInfo.communityId;
_that.appUserName = _ownerInfo.name; _that.appUserName = _ownerInfo.name;
_that.link = _ownerInfo.ownerTel; _that.link = _ownerInfo.link;
} }
}); });
}, },