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

updates

上级 2b057265
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
</div> </div>
</el-popover> </el-popover>
</div> </div>
</div>
<div class="banner_homeList"> <div class="banner_homeList">
<div v-for="(itemRoad, indexRoad) in homeList" :key="indexRoad"> <div v-for="(itemRoad, indexRoad) in homeList" :key="indexRoad">
<el-popover trigger="hover" popper-class="popover" :placement="itemRoad.position" v-model="itemRoad.isShow"> <el-popover trigger="hover" popper-class="popover" :placement="itemRoad.position" v-model="itemRoad.isShow">
...@@ -49,6 +48,7 @@ ...@@ -49,6 +48,7 @@
</el-popover> </el-popover>
</div> </div>
</div> </div>
</div>
<div class="w1200"> <div class="w1200">
<ProjectCard <ProjectCard
title="在线国际学位" title="在线国际学位"
...@@ -74,10 +74,10 @@ export default { ...@@ -74,10 +74,10 @@ export default {
list() { list() {
if (this.learningInfo.length > 0) { if (this.learningInfo.length > 0) {
this.roadList.forEach(item => { 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.isShow = true
item.project_name = '我的项目:' 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 return this.roadList
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(JSON.parse(window.localStorage.getItem('learning'))) this.learning = JSON.parse(window.localStorage.getItem('learningList'))
} }
} }
</script> </script>
......
...@@ -58,6 +58,9 @@ export const actions = { ...@@ -58,6 +58,9 @@ export const actions = {
const isLogin = await getUser() const isLogin = await getUser()
.then(response => { .then(response => {
commit('setUser', response.data) 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 return true
}) })
.catch(() => { .catch(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论