Vuetify Warning: Unable to locate target [data-app]

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:
    Here Insert Picture Description
  • 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>

## END

Under that help small partners like the point of a support ~

I feel a small partner to help point a praise ~

Guess you like

Origin www.cnblogs.com/zheroXH/p/11610987.html