moshaorui 4 달 전
부모
커밋
d982073ab6
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/Admin/Controllers/BaseProductController.php
  2. 1 1
      app/Distributor/Controllers/DistProductController.php

+ 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">';