查询出来的项目数据为空时,el-table的表头项目名称不刷新,依旧为上一次查询的项目名称
表头改成slot改为#header就可以了
<template slot="header" slot-scope="scope"></template>
改为
<template #header slot-scope="scope"></template>
查询出来的项目数据为空时,el-table的表头项目名称不刷新,依旧为上一次查询的项目名称
表头改成slot改为#header就可以了
<template slot="header" slot-scope="scope"></template>
改为
<template #header slot-scope="scope"></template>