|
@@ -40,7 +40,9 @@ export default withLayout((props) => {
|
40
|
40
|
useDidShow(() => {
|
41
|
41
|
getAddress().then((e) => {
|
42
|
42
|
let abccList = e.records.sort((a, b) => b.isDefault - a.isDefault)
|
43
|
|
- setAddresInfo(abccList[0].address)
|
|
43
|
+ if (abccList.length!=0) {
|
|
44
|
+ setAddresInfo(abccList[0].address)
|
|
45
|
+ }
|
44
|
46
|
})
|
45
|
47
|
if ($instance.router.params.userOk || person.phone) {
|
46
|
48
|
setIsLoginBox(true)
|