|
@@ -128,7 +128,7 @@ const pages = ref({
|
|
|
const cityClick = async () => {
|
|
|
const {latitude,longitude} = data.address;
|
|
|
const address = await chooseLocationInit({latitude,longitude});
|
|
|
- data.address = address;
|
|
|
+ data.address = {...data.address,...address};
|
|
|
settingAddress();
|
|
|
console.log('address', address);
|
|
|
}
|
|
@@ -245,7 +245,7 @@ const settingAddress = async() => {
|
|
|
}
|
|
|
const res = await settingHomeAddress(parmas);
|
|
|
console.log('res',res);
|
|
|
- getList();
|
|
|
+ userType === '1' && getList();
|
|
|
} catch (error) {
|
|
|
console.log('设置地址失败',error);
|
|
|
}
|