Giter VIP home page Giter VIP logo

Comments (8)

issue-label-bot avatar issue-label-bot commented on May 5, 2024

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

from cloudbase-framework.

binggg avatar binggg commented on May 5, 2024

可以看下这个文档
https://github.com/TencentCloudBase/cloudbase-vue#vuecloudbase

from cloudbase-framework.

chatterzhao avatar chatterzhao commented on May 5, 2024

可能是我基础有点弱,我还是没get 获取uid的方法

另外看到您给我分享的教程,我看到获取云存储真实url的代码为:
<CloudFile
id="cloud://file-cloud-path"
v-slot="{ url, loading }"

{{ url ? url : 'loading...' }}
这是不是说,在 Vue 中用这个代替 cloud.getTempFileURL()

from cloudbase-framework.

binggg avatar binggg commented on May 5, 2024

CloudFile 这个方便些

this.$cloudbase 就相当于 app
所以可以 this.$cloudbase.auth().hasLoginState().user.uid

from cloudbase-framework.

chatterzhao avatar chatterzhao commented on May 5, 2024

我这里 this.$cloudbase.auth().hasLoginState()下面就只有accesstoken和refreshtoken,没有user什么的

from cloudbase-framework.

binggg avatar binggg commented on May 5, 2024

@chatterzhao 这里是因为Vue 插件的版本依赖的tcb-js-sdk 没有升级,我们处理下

from cloudbase-framework.

chatterzhao avatar chatterzhao commented on May 5, 2024

@binggg 非常感谢

from cloudbase-framework.

binggg avatar binggg commented on May 5, 2024

已解决,可以升级 @cloudbase/vue-provider 到 0.3.0

基于 CLI 创建新的 vue 相关的模板也已经更新了

from cloudbase-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.