moshaorui 4 tháng trước cách đây
mục cha
commit
d982073ab6

+ 1 - 1
app/Admin/Controllers/BaseProductController.php

@@ -87,7 +87,7 @@ class BaseProductController extends AdminController
             $show->field('sku');
             $show->field('base_product_category.name',admin_trans_label('category_name'));
             $show->field('issuance_date');
-            $show->field('parameters')->as(function ($items) {
+            $show->field('parameters',admin_trans_label('attribute_name'))->as(function ($items) {
                 if (is_array($items)) {
                     // 创建表格的表头
                     $table = '<table class="table table-bordered table-condensed">';

+ 1 - 1
app/Distributor/Controllers/DistProductController.php

@@ -109,7 +109,7 @@ class DistProductController extends AdminDistController
             $show->field('keywords');
             $show->field('description');
             $show->field('issuance_date');
-            $show->field('parameters')->as(function ($items) {
+            $show->field('parameters',admin_trans_label('attribute_name'))->as(function ($items) {
                 if (is_array($items)) {
                     // 创建表格的表头
                     $table = '<table class="table table-bordered table-condensed">';