提交 67a1e7b9 authored 作者: matian's avatar matian

updates

上级 2b057265
......@@ -31,22 +31,22 @@
</div>
</el-popover>
</div>
</div>
<div class="banner_homeList">
<div v-for="(itemRoad, indexRoad) in homeList" :key="indexRoad">
<el-popover trigger="hover" popper-class="popover" :placement="itemRoad.position" v-model="itemRoad.isShow">
<div>
<div v-for="(it, indexItem) in itemRoad.itemList" :key="indexItem" class="project_name">
<AppLink :data="it">
{{ it.name }}
</AppLink>
<div class="banner_homeList">
<div v-for="(itemRoad, indexRoad) in homeList" :key="indexRoad">
<el-popover trigger="hover" popper-class="popover" :placement="itemRoad.position" v-model="itemRoad.isShow">
<div>
<div v-for="(it, indexItem) in itemRoad.itemList" :key="indexItem" class="project_name">
<AppLink :data="it">
{{ it.name }}
</AppLink>
</div>
</div>
</div>
<div slot="reference" class="banner_homeList_con">
<img :src="itemRoad.icon" alt="" />
<div class="item_title">{{ itemRoad.title }}</div>
</div>
</el-popover>
<div slot="reference" class="banner_homeList_con">
<img :src="itemRoad.icon" alt="" />
<div class="item_title">{{ itemRoad.title }}</div>
</div>
</el-popover>
</div>
</div>
</div>
<div class="w1200">
......@@ -74,10 +74,10 @@ export default {
list() {
if (this.learningInfo.length > 0) {
this.roadList.forEach(item => {
if (item.projectList.find(it => it.tenant === this.learning[0].tenant)) {
if (item.projectList.find(it => it.tenant === this.learningInfo[0].tenant)) {
item.isShow = true
item.project_name = '我的项目:'
item.projectList = item.projectList.filter(it => it.tenant === this.learning[0].tenant)
item.projectList = item.projectList.filter(it => it.tenant === this.learningInfo[0].tenant)
}
})
return this.roadList
......@@ -133,7 +133,7 @@ export default {
}
},
mounted() {
console.log(JSON.parse(window.localStorage.getItem('learning')))
this.learning = JSON.parse(window.localStorage.getItem('learningList'))
}
}
</script>
......
......@@ -58,6 +58,9 @@ export const actions = {
const isLogin = await getUser()
.then(response => {
commit('setUser', response.data)
console.log(response.data.learning_info, 'data')
window.localStorage.setItem('learningList', JSON.stringify(response.data.learning_info))
console.log(JSON.parse(window.localStorage.getItem('learningList')))
return true
})
.catch(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论