Skip to content

fix(server-routes): unable to clear all params #683

@jsonleex

Description

@jsonleex

🐛 The bug

Unable to clear params input by click 'Remove All' button

shot_2024-06-22_18 39 34

This bug maybe cause by @vueuse/useVModel:

const params = useVModel(props, 'modelValue', emit, { passive: true })

<NButton
v-if="params.length"
icon="carbon-trash-can" n="sm red"
my1 px-3 @click="params = []"
>
Remove All
</NButton>

🛠️ To reproduce

null

🌈 Expected behavior

It should clear all params

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions