Commit c268350c by 高浩杰

finish config

parent 5068cfb9
......@@ -85,11 +85,128 @@ export default {
},
post:{
Post:{
release:'/api/post',//发布动态
},
PostComment:{
release:'/api/post/',//发布动态评论 +{postId}/comment
},
Blog:{
release:'/api/blog'//发布博客
},
BlogComment:{
release:'/api/blog/', //发布博客评论 +{blogId}/comment
},
Tag:{
create:'/api/tag'//创建标签
},
User:{
shielding:'/api/my/blacklist/',//拉黑 +{userId}
follow:'/api/user/',//关注 +{userId}/follower
register:'/api/user/register/mobile'//用户注册
},
Authentication:{
accountAuth:'/api/auth/password',//账号密码认证
smsAuth:'/api/auth/sms'//短信验证登录
},
Topic:{
release:'/api/topic',//创建话题
follow:'/api/topic/',//关注话题 +{topicId}/follower
},
Resource:{
file:'/api/resource/file'//文件上传
},
Question:{
release:'/api/question'//发布问题
},
QuestionReply:{
release:'/api/question/',//发布回复 +{questionId}/reply
},
QuestionReplyComment:{
release:'/api/question/reply/' ,//发表评论 +{replyId}/comment
},
Project:{
release:'/api/project',//发布项目
},
ProjectComment:{
list:'/api/project/',//项目发表评论 +{projectId}/comment
},
},
delete:{
Post:{
delete:'/api/post/',//删除动态 +{postId}
},
PostComment:{
delete:'/api/post/comment/',//删除动态评论 +{commentId}
},
Blog:{
delete:'/api/blog/'//删除博客 +{blogId}
},
BlogComment:{
delete:'/api/blog/comment/', //删除博客评论 +{commentId}
},
User:{
unfollow:'/api/user/',//取消关注 +{userId}/follower
},
Question:{
delete:'/api/question/'//删除问题 +{questionId}
},
QuestionReply:{
delete:'/api/question/reply/',//删除问题回复 +{replyId}
},
QuestionReplyComment:{
delete:'/api/question/reply/comment/' ,//删除评论 +{commentId}
},
Project:{
delete:'/api/project/',//删除项目 +{projectId}
},
ProjectComment:{
delete:'/api/project/comment/',//删除项目评论 +{commentId}
},
},
put:{
Blog:{
revise:'/api/blog/'//修改博客 +{blogId}
},
User:{
reviseInfo:'/api/my/baseinfo',//修改个人资料
revisePassword:'/api/my/password'//修改密码
},
Question:{
revise:'/api/question/'//修改问题 +{questionId}
},
QuestionReply:{
adopt:'/api/question/reply/',//采纳问题回复 +{replyId}/adoption
},
delete:{},
put:{},
Project:{
revise:'/api/project/',//修改项目 +{projectId}
},
},
},
event:{
......
......@@ -16,7 +16,7 @@
<answer-card card-type="2"></answer-card>
</card-container>
<div class="pagination">
<pagination style="margin: 0 auto;"></pagination>
<pagination style="margin: 0 auto;" pages="13" v-on:listenPageChange="changePage"></pagination>
</div>
</div>
<div class="answer-container__right">
......@@ -114,6 +114,9 @@ export default {
},
search(){
this.$router.push('/search/answer');
},
changePage(currentPage){
//返回页数 请求新的数据
}
}
}
......
......@@ -19,7 +19,7 @@
<project-card></project-card>
</card-container>
<div class="pagination">
<pagination style="margin: 0 auto;"></pagination>
<pagination style="margin: 0 auto;" pages="13" v-on:listenPageChange="changePage"></pagination>
</div>
</div>
<div class="blog-container__right">
......@@ -97,6 +97,9 @@ export default {
methods: {
toRelease(){
this.$router.push('/blog/release')
},
changePage(currentPage){
//返回页数 请求新的数据
}
}
}
......
......@@ -11,7 +11,7 @@
<project-card></project-card>
</card-container>
<div class="pagination">
<pagination style="margin: 0 auto;"></pagination>
<pagination style="margin: 0 auto;" pages="13" v-on:listenPageChange="changePage"></pagination>
</div>
</div>
<div class="news-container__r">
......@@ -62,7 +62,12 @@ import ProjectCard from "../../components/pc/projectCard";
import Pagination from "../../components/pc/pagination";
export default {
components: {ProjectCard, CardContainer,Pagination}
components: {ProjectCard, CardContainer,Pagination},
methods: {
changePage(currentPage){
//返回页数 请求新的数据
}
}
}
</script>
......
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