fix bug when creating new data still triggered update

This commit is contained in:
Geriano
2022-08-09 02:39:33 +07:00
parent 822105cdb2
commit 45c5c56cff
4 changed files with 4 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
<Card class="bg-gray-50 dark:bg-gray-700 dark:text-gray-100">
<template #header>
<div class="flex items-center space-x-2 p-2 bg-gray-200 dark:bg-gray-800">
<ButtonGreen v-if="can('create menu')" @click.prevent="show">
<ButtonGreen v-if="can('create menu')" @click.prevent="form.id = null; show()">
<Icon name="plus" />
<p class="uppercase font-semibold">create</p>
</ButtonGreen>