解决游客模式下的bug

Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
java110 2022-08-31 03:15:00 +00:00 committed by Gitee
parent 32a76ad73e
commit 2f6996b0d5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -146,6 +146,13 @@ const getCurrentCommunity = function() {
const getRooms = function() {
return new Promise((resolve, reject) => {
if(!_owner.ownerId || _owner.ownerId == '-1'){
resolve({
data:{rooms:[]}
});
}
getOwner(function(_owner) {
request({
url: constant.url.queryRoomsByOwner,