Skip to content

Commit

Permalink
The property group deleted the bug twice
Browse files Browse the repository at this point in the history
  • Loading branch information
jack authored and yushine committed Feb 17, 2025
1 parent 90c56fb commit dda128f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions innopacks/panel/resources/views/attribute_groups/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
method="POST" class="d-inline">
@csrf
@method('DELETE')
<el-button size="small" type="danger" plain @click="open">{{ __('panel/common.delete')}}</el-button>
<el-button size="small" type="danger" plain @click="open({{ $item->id }})">{{ __('panel/common.delete')}}</el-button>
</form>
</div>
</div>
Expand Down Expand Up @@ -168,23 +168,24 @@
drawer.value = true
}
const deleteForm = ref(null);
const open = () => {
ElMessageBox.confirm(
const open = (id) => {
ElMessageBox.confirm(
'确定要删除吗?',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
.then(() => {
)
.then(() => {
const deleteUrl = urls.base_url + '/attribute_groups/' + id;
deleteForm.value.action = deleteUrl;
deleteForm.value.submit();
})
.catch(() => {
});
};
})
.catch(() => {
});
};
const exportFuns = {
drawer,
form,
Expand Down

0 comments on commit dda128f

Please sign in to comment.