用最简单的方法解决最简单的问题:
将tableColumns列的定义写在computed内
computed:{
tableColumns(){
const tableColumns=[
{type: "index" },
{align: "center",label:this.$t('releaseTime0297'),width: 150},
{align: "left",label:this.$t('headline005'),minWidth: 150},
{align: "left",label:this.$t('issuer564'),width: 150},
{align: "center",label:this.$t('LastUpdated565'),width: 150},
{align: "center",label:this.$t('LastUpdated0298'),width: 150},
{align: "left",label:this.$t('region0236'),width: 160}
]
return tableColumns
}
},
over!!