Skip to content

地址选区有bug啊,开源版和demo版有出入 #5

@anymouschina

Description

@anymouschina

js const getRegions = async () => { try { let ids = ""; if (props.modelValue.length > 0) { ids = props.modelValue.join(","); } const result = await getRegionByIds(ids); regionList.value.splice(0) Object.assign(regionList.value, result); if (regionList.value.length > 1) { if (regionList.value[regionList.value.length - 1].length > 0) { showIndex.value = regionList.value.length - 1; } else { showIndex.value = regionList.value.length - 2; } } else { showIndex.value = 0; } } catch (error) { } finally { } };
regionList.value.splice(0) // 待补充

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions