|
@@ -937,8 +937,10 @@ export default {
|
|
|
async getPortalsByLbs() {
|
|
|
try {
|
|
|
const res = await getPortalsByLbs(this.groupId, this.mallId);
|
|
|
- this.portalsByLbsList = res.displayFunctionList.filter(elm => elm.enabled).map(elm => elm.code)
|
|
|
- this.portalsByLbsInfo = res
|
|
|
+ if(res.length) {
|
|
|
+ this.portalsByLbsList = res[0].displayFunctionList.filter(elm => elm.enabled).map(elm => elm.code)
|
|
|
+ this.portalsByLbsInfo = res[0]
|
|
|
+ }
|
|
|
} catch (e) {
|
|
|
console.log('getPortalsByLbs', e)
|
|
|
}
|