RainManGO / vue3-composition-admin

🎉 基于vue3 的管理端模板(Vue3 TS Vuex4 element-plus vue-i18n-next composition-api) vue3-admin vue3-ts-admin
MIT License
3.13k stars 914 forks source link

tags cannot close on production #77

Closed ItsNikkiZeng closed 3 years ago

ItsNikkiZeng commented 3 years ago

seems getCurrentInstance can be catch on dev but not for build, so tag instance cannot catch on production, it makes tags close menu cannot shown ,use proxy instead.it working. getCurrentInstance在开发环境中可以拿到实例,但是生产环境中无法获得,导致上线后tags标签关闭菜单无法显示,使用proxy代替均已正常使用.

huangfushun commented 2 years ago

same issue on all vues, pls use ref(null) instead of getCurrentInstance