Browse Source

修改兼容性 replaceAll 改为使用 replace

yunxing 4 years ago
parent
commit
99f71c309c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/equipment/table/djspTable.vue

+ 2 - 1
src/views/equipment/table/djspTable.vue

@@ -41,7 +41,8 @@
                         <i v-for='(info,infoIndex) in row.brandList' :key='infoIndex'>
                             {{ info.brandname || 'xxx' }}
                             -
-                            {{ info.shopsnumList ? info.shopsnumList.replaceAll(',','、') : 'xxx' }}
+                            <!-- {{ info.shopsnumList ? info.shopsnumList.replaceAll(',','、') : 'xxx' }} -->
+                            {{ info.shopsnumList ? info.shopsnumList.replace(/,/g,'、') : 'xxx' }}
                             {{ infoIndex === row.brandList.length - 1 ? '' : ',' }}
                         </i>
                     </div>