刀飞了
刀飞了
  • 发布:2022-05-18 16:37
  • 更新:2022-05-19 03:27
  • 阅读:472

云对象必须要接入uni-id公共模块吗?

分类:uniCloud

用了下云对象。按照官网例子 随意写了个demo,但是提示错误。
未找到uni-id

截图如下

index.vue的代码如下:

<template>  
  <view class="content">  
    123  
  </view>  
</template>  

<script setup lang="ts">  
import { ref } from 'vue'  
const login = uniCloud.importObject('login')  
const res = await login.add(1,2)  
console.log(res)  
</script>  

<style>  

</style>  
2022-05-18 16:37 负责人:无 分享
已邀请:
hws007

hws007 - 我就是我!

云对象api依赖uni-id的,所以要设置引入uni-id模块

  • 刀飞了 (作者)

    但在官网的文档中并没有很显著的标注。感谢

    2022-05-19 08:51

  • hws007

    回复 刀飞了: 凡是有要获取用户信息的都要,uni-id是核心

    2022-05-25 22:10

该问题目前已经被锁定, 无法添加新回复