修复后台商品列表 创建商品按钮判断错误问题

This commit is contained in:
pushuo 2022-11-09 16:54:20 +08:00 committed by Edward Yang
parent 7bb7939f76
commit aa76941cf7
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
</div>
</div>
<div class="d-flex justify-content-between my-4" v-if="product.data.length">
<div class="d-flex justify-content-between my-4">
@if ($type != 'trashed')
<a href="{{ admin_route('products.create') }}">
<button class="btn btn-primary">{{ __('admin/product.products_create') }}</button>
@ -69,7 +69,7 @@
@endif
@if ($type != 'trashed')
<div class="right">
<div class="right" v-if="product.data.length">
<button class="btn btn-outline-secondary" :disabled="!selected.length" @click="batchDelete">{{ __('admin/product.batch_delete') }}</button>
<button class="btn btn-outline-secondary" :disabled="!selected.length"
@click="batchActive(true)">{{ __('admin/product.batch_active') }}</button>