Handy_Cao 2 yıl önce
ebeveyn
işleme
fd210358f2

+ 1 - 1
src/packages/pc/components/layouts/header/index.vue

@@ -29,7 +29,7 @@
                 </template>
             </el-dropdown>
         </div>
-        <component :is="componentMap.get(componentId)" @closed="closeComponent" v-if="componentId" />
+        <component ref="componentRef" :is="componentMap.get(componentId)" @closed="closeComponent" v-if="componentId" />
     </div>
 </template>