获得徽章 7
有这样一个列子,我有一个图标库列表,需要请求api接口来获取数据,因为这个列表,是共享的,所以我把他放在vuex 假设为logoList,其数据最后为store.state.logoList.list,我在页面想展示它 我用的是计算属性const LogolList = computed(() => {
return store.state.logoList.list
})
然后再模板中循环
<label v-for="item in LogolList">{{name}}</label
请问还有没别的好方法进行操作
return store.state.logoList.list
})
然后再模板中循环
<label v-for="item in LogolList">{{name}}</label
请问还有没别的好方法进行操作
展开
评论
4
感觉自己vue3的基础不是很好,源码看过一些,但是看完就忘了,项目上的代码虽然能写,但是很多东西,都是google出来的,请问有什么范例,在项目中写代码的时候
15
4
![[捂脸]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_28.8981538.png)
![[微笑]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_1.7d9f699.png)