商品详情
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
import AddressItem from './components/address-item.vue';
|
||||
import { goPath } from '@/utils';
|
||||
import { getAddressList } from '@/api/user';
|
||||
|
||||
const addressList = ref<{
|
||||
name: string,
|
||||
@@ -29,6 +30,15 @@ const addressList = ref<{
|
||||
mobile: '13xxxxxx8900',
|
||||
status: 0
|
||||
}]);
|
||||
|
||||
onLoad((e) => {
|
||||
fetchAddressList();
|
||||
});
|
||||
|
||||
const fetchAddressList = async () => {
|
||||
const { data } = await getAddressList();
|
||||
addressList.value = data;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
|
Reference in New Issue
Block a user