Open zic-liu opened 11 months ago
将ViewUIPlus引入放到App引入前面,这样
import { createApp } from 'vue' import ViewUIPlus from 'view-ui-plus' import App from './App.vue' import router from './router' import store from './store' import 'view-ui-plus/dist/styles/viewuiplus.css'
const app = createApp(App)
app.use(store) .use(router) .use(ViewUIPlus) .mount('#app')
vue 3.3.2 vite 4.3.5 view-ui-plus 1.3.14
in main.js:
I got the error:
[Vue warn]: Component "Avatar" has already been registered in target app [Vue warn]: Component "Calendar" has already been registered in target app [Vue warn]: Component "Grid" has already been registered in target app [Vue warn]: Component "Link" has already been registered in target app ... [Vue warn]: Invalid prop: custom validator check failed for prop "type".
In my project, I use Element-plus and Ant-design, too. I have no idea why I get the warn. Need any help, please.