【发布时间】:2020-10-08 16:50:03
【问题描述】:
以下代码
const app = createApp(App);
const gauthOptions = {
clientId: CLIENTID,
scope: SCOPES,
prompt: 'select_account'
};
app.use(GAuth, gauthOptions);
抛出此错误
“Object.defineProperties 在非对象上调用”。
在文档 here 中,他们使用全局 Vue.use() 代替了 app.use()。我知道 Vue3 中的 createApp 被抽象以解决一些全球化问题,但我现在想知道这会破坏这个 gauth 包(为 vue 构建)的功能,还是有办法解决它?
【问题讨论】:
标签: javascript vue.js google-oauth vuejs3