夏日雨来临
2019-07-30 10:06
<template>
<div>
新闻列表
<ul>
<li v-for="(item,index) in pageList"
:key="index">
{{item.title}}-{{item.content}}
</li>
</ul>
</div>
</template>
<script>
import store from '@/store'
export default{
name:'List',
store,
computed:{
pageList(){
return store.state.lists
}
}
}
</script>
还没有人回答问题,可以看看其他问题
3小时速成 Vue2.x 核心技术
82559 学习 · 487 问题
相似问题