加个属性控制他是否在关闭 Drawer 之后将子元素全部销毁,核心代码
:destroy-on-close="true"
<el-drawer
class="drawerClass"
size="100%"
:visible.sync="configureDrawer"
:with-header="false"
:destroy-on-close="true"
>
<i class="el-icon-close" @click="configureDrawer=false" />
<Theme-configuration :to-data="itemRouter" :query-data="{ report }" :router-i-d="itemRouterID" />
</el-drawer>