1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <template>
| <PageLayout class="editAddress-page-wrapper" :title="title" has-border>
| <InnerPage></InnerPage>
| </PageLayout>
| </template>
|
| <script setup lang="ts">
| import InnerPage from './InnerPage.vue';
| import Taro from '@tarojs/taro';
|
| defineOptions({
| name: 'editAddress',
| });
|
| const router = Taro.useRouter();
| const id = router.params?.id ?? '';
|
| const title = computed(() => (id ? '编辑地址' : '新增地址'));
| </script>
|
| <style lang="scss">
| @import '@/styles/common.scss';
| </style>
|
|