在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,app,component,vue3,警告,null,黄色 From: https://www.cnblogs.com/zyzlb/p/16609821.html