Authored by zhangxiaoru

空数组

... ... @@ -56,8 +56,9 @@ const shopNav = (channelId) => {
cache: true,
code: 200
}).then((result) => {
console.log(result)
if (result.data) {
if (result.data.length === 1 && result.data[0] === 'NULL') {
if (result.data.length === 0 || (result.data.length === 1 && result.data[0] === 'NULL')) {
return false;
} else {
return result.data;
... ...