當el-table被封裝在子組件時,tableData發生變化,數據沒有重新渲染
解決方法:為該子組件綁定一個key,每次tableData發生變化時,改變這個key
<Table
class="card-table"
:tableData="tableData"
:tableHeader="dataHeader"
:key="timeStamp"
v-if="!config.template && value == 1"
/>
watch: { // 監聽頁碼頁寬 pageQuery: { handler(val) { this.timeStamp = new Date() }, deep: true }, },