|
@@ -245,7 +245,7 @@ const settingAddress = async() => {
|
|
|
}
|
|
|
const res = await settingHomeAddress(parmas);
|
|
|
console.log('res',res);
|
|
|
-
|
|
|
+ getList();
|
|
|
} catch (error) {
|
|
|
console.log('设置地址失败',error);
|
|
|
}
|
|
@@ -271,14 +271,15 @@ onShow(() => {
|
|
|
})
|
|
|
|
|
|
onMounted(() => {
|
|
|
- getList()
|
|
|
+
|
|
|
locateTheCurrentAddress().then(res => {
|
|
|
console.log('locateTheCurrentAddress',res);
|
|
|
data.address = res;
|
|
|
settingAddress();
|
|
|
+
|
|
|
}).catch(error => {
|
|
|
console.log('获取地址失败!',error);
|
|
|
-
|
|
|
+ getList()
|
|
|
})
|
|
|
|
|
|
})
|