Skip to content

文档错误:文档中index.js少了一个括号 #2

Description

@Lumozz

大部分关于index.js的文档都少了一个括号

’‘’
async uploadData(item) {
const db = await getApp().database()
db.collection('todo').add({
data: item
})
},
})
‘’‘
应改为
‘’‘
async uploadData(item) {
const db = await getApp().database()
db.collection('todo').add({
data: item
})
},
}
})
’‘’

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions