Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
auven committed Mar 25, 2017
1 parent a82bddb commit 838618e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vue-blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<div class="page">
<ul>
<li :class="{'f': prev === false}"><a :href="'#/page/' + (parseInt(p)-1)">上一页</a></li>
<li v-for="n in ps"><a :href="'#/page/' + n">{{ n }}</a></li>
<li :class="{'f': next === false}"><a :href="'#/page/' + (parseInt(p)+1)">下一页</a></li>
</ul>
</div>
Expand Down Expand Up @@ -248,11 +249,6 @@
this.$http.get("https://api.github.com/repos/"+_config['owner']+"/"+_config['repo']).then(function (response) {
this.ps = Math.ceil((response.data.open_issues)/_config['per_page']);
console.log(this.ps, "这个是Pages");
var pageHTML = '';
for (var i = 1; i <= this.ps; i++) {
pageHTML += '<li><a href="#/page/' + i + '">'+ i +'</a></li>';
}
$(".page li:eq(0)").after(pageHTML);
}, function (response) {

});
Expand Down

0 comments on commit 838618e

Please sign in to comment.