使用 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'错误了。不知道如何从这里继续前进。我愿意接受所有建议。
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)。相反,我得到一个“未捕获”异常并且执行停止。
希望得到任何人谁管理,使用任何的见解async与firebase.auth()