After today, when major changes nuxt project layout will Vuetify into the side nav Element folding nav, I found a Warning, though not affect the use, but a bunch of console output, an obsessive-compulsive disorder program ape endure can not.
- First look at the Warning:
- This tip is very significant, meaning probably can not find 'data-app' goal this property .
And I found a lot of Vuetify components will prompt the Warning, - Because I only change the Layout, so I guess it should be Vuetify some components may need to find an ancestor node, and then rendering components, that 'app-data' Perhaps this is a logo, Ever since, I was in
I added a label layer 'app-data', as follows:
<el-main class="bg-gredient-lightBlue" data-app="true">
<nuxt />
</el-main>
- Sure enough, you can! Google a bit later, only to find a similar situation, paste the following link:
https://forum.vuejs.org/t/vuetify-data-app-true-and-problems-rendering-v-dialog-in-unit -tests / 27495