vue3黄色警告信息太多 关闭警告提示
作者:互联网
在main.js中加上
app.config.warnHandler = () => null;
const app = createApp(App) for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component) } app.use(store) app.use(router) app.use(ElementPlus) app.config.warnHandler = () => null; app.mount('#app')
标签:use,const,app,warnHandler,component,vue3,警告,null,黄色 来源: https://www.cnblogs.com/zyzlb/p/16609821.html