Vue, Vuetify is not properly initialized

后端 未结 7 1815
旧时难觅i
旧时难觅i 2021-01-31 20:28

I have setup Vuetify on my Vue webpack application.

My project is setup with vue init webpack my-project running Vue 2.5.2

7条回答
  •  情书的邮戳
    2021-01-31 20:56

    Try adding:

    const opts = {
      theme: {
        dark: true,
        themes: {
          light: {
            primary: '...',
            ...
          },
          dark: {
            primary: '...',
            ...
          }
        }
      }
    }
    

    and

    new Vue({
      el: '#app',
      router,
      store,
      vuetify: new Vuetify(opts),
      render: h => h(App)
    })
    

    to your main.js.

提交回复
热议问题