Element table data replacement

for example, I want to replace all the empty data in the table with "-" instead of

.
how to operate better

Mar.03,2021

     //1:empty-text   
    <el-table empty-text>      
    <el-table-column label="//">
      <template slot="empty">
        --
      </template>
    </el-table-column>
    
     //2:
    <el-table-column label="//">
      <template slot-scope="scope">
        <span v-if=" scope.row.value== '' ">--</span>
        <span v-else></span>
      </template>
    </el-table-column>
    

register a global filter at one point of generality.

Vue.filter('handleEmpty', function (value) {
  return value === '' ? '--' : value
})

then just use it directly.

{{ msg | handleEmpty }}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaab5b-47dd1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaab5b-47dd1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?