consumer模块完成度95%,实现数据库多端注册登录,优化安卓端小程序bug
This commit is contained in:
@@ -183,7 +183,13 @@
|
||||
isLoading.value = true
|
||||
|
||||
try {
|
||||
const result = await supa.signUp(email.value.trim(), password.value)
|
||||
// 在注册时传递 user_role 元数据,以便数据库触发器识别
|
||||
const options = new UTSJSONObject()
|
||||
const metaData = new UTSJSONObject()
|
||||
metaData.set('user_role', 'consumer')
|
||||
options.set('data', metaData)
|
||||
|
||||
const result = await supa.signUp(email.value.trim(), password.value, options)
|
||||
|
||||
console.log('注册返回结果:', result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user