Commit 3dd8211d Harvey

no message

1 个父辈 f2cbc46d
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
} }
} }
}, },
async onLoad(e) { async onLoad(e) {
const res = await uni.$u.request.graphql({ const res = await uni.$u.request.graphql({
name: 'lottery_shop_get_my_shop_info' name: 'lottery_shop_get_my_shop_info'
}) })
if (res.length < 1) return if (!(res && res.length > 1)) return
this.data = res[0] this.data = res[0]
}, },
methods: { methods: {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!