用了下云对象。按照官网例子 随意写了个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-19 08:51
hws007
回复 刀飞了: 凡是有要获取用户信息的都要,uni-id是核心
2022-05-25 22:10