关于各种Vue UI框架中加载进度条的正确使用

这里拿MUSE UI 中的进度条举例

<mu-circular-progress :size="40" class="icon" v-if="isloading"/>
    <div v-show="!isloading">
      <p>内容</p>
    </div>

//数据初始化
data () {
return {
isloading: false
}
},
//页面加载之前
mounted () {
this.isloading = true
this. a x i o s . g e t ( [ ′ / a p i / p l a y l i s t / d e t a i l ? i d = ′ + t h i s . axios .get([ '/api/playlist/detail?id=' + this. axios.get([/api/playlist/detail?id=+this.route.params.id
])
.then(response => {
// success
// console.log(response.data)
this.name = response.data.playlist.name
this.list = response.data.playlist.tracks
this.isloading = false
})

 

更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/119352929

posted @   忘川信使  阅读(162)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示