小编Ces*_*uez的帖子

如何将 Vuetify 添加到 astro?

使用 Vue 集成时,我在将 Vuetify 3 添加到 Astro 时遇到问题。这是我到目前为止所拥有的:

import { defineConfig } from 'astro/config';

import vue from '@astrojs/vue';

import vuetify from 'vite-plugin-vuetify';

// https://astro.build/config
export default defineConfig({
  integrations: [vue()],
  vite: {
    ssr: {
      noExternal: ['vuetify'],
    },
    plugins: [vuetify()],
  },
});
Run Code Online (Sandbox Code Playgroud)

我收到'Vuetify plugin must be loaded after the vue plugin'错误了。不知道如何从这里继续前进。我愿意接受所有建议。

vue.js vuetify.js vuejs3 astrojs

6
推荐指数
1
解决办法
1991
查看次数

使用异步在 firebase.auth() 中捕获错误后获取“未捕获”

async login({ commit }, { email, password }) {
  let result
  try {
    result = await firebase.auth().signInWithEmailAndPassword(email, password)
    commit('setUser', result.user)
  } catch (err) {
    commit('setError', err)
  }
}
Run Code Online (Sandbox Code Playgroud)

这是 Vuex 中的一个动作。当它运行时,我希望 是commit('seteError', err)从 返回的错误的有效错误处理程序catch (err)。相反,我得到一个“未捕获”异常并且执行停止。

希望得到任何人谁管理,使用任何的见解asyncfirebase.auth()

javascript async-await firebase firebase-authentication

4
推荐指数
1
解决办法
1767
查看次数