关于各种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 @ 2022-05-24 15:19  忘川信使  阅读(159)  评论(0编辑  收藏  举报