Commit 4e7997d9 authored by zhangyanni's avatar zhangyanni

首页

parent 3f720d0b
......@@ -264,6 +264,7 @@
projectInfo: [],
companyInfo: [],
caseInfo: [],
articleList:[],
lang: this.$i18n.locale == "zh-CN" ? 1 : 2,
userInfo: null,
friendlyLink: [{
......@@ -516,6 +517,18 @@
handleToArticle(){
},
getArticleInfoData(){
api.getArticleListAxios().then((res)=>{
if(res.code==0){
this.articleList = res.result;
}else{
this.$toast(res.msg)
}
}).catch((err)=>{
this.$toast(err)
})
}
......@@ -526,6 +539,7 @@
this.getActiveInfoData();
this.getProjectInfoData();
this.getDocumentFunc();
// this.getArticleInfoData();
},
beforeRouteEnter(to, from, next) {
next(vm=>{ // 这里的vm指的就是vue实例,可以用来当做this使用
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment