fix:修复bug
This commit is contained in:
@@ -15,10 +15,11 @@ const addressStore = useAddressStore()
|
||||
const visitMethodRef = ref<InstanceType<typeof VisitMethod>>()
|
||||
const buildingTypeRef = ref<InstanceType<typeof BuildingType>>()
|
||||
function openVisitMethod() {
|
||||
visitMethodRef.value?.onOpen()
|
||||
// deliveryType: 1-亲自送达(0) 2-放门口(1),打开时回显当前选中
|
||||
visitMethodRef.value?.onOpen(+addressStore.addressInfo.deliveryType === 2 ? 1 : 0)
|
||||
}
|
||||
|
||||
const visitMethod = ref(t('components.visit.leaveItToMePersonally')) // 默认选择亲自送达
|
||||
const visitMethod = ref(t('components.visit.putItAtTheDoor')) // 默认选择放在门口
|
||||
function visitMethodConfirm(data: any) {
|
||||
console.log('visitMethodConfirm', data)
|
||||
visitMethod.value = data.label;
|
||||
|
||||
Reference in New Issue
Block a user