浏览代码

Merge pull request #830 from pixelfed/frontend-ui-refactor

Frontend ui refactor
daniel 6 年之前
父节点
当前提交
985af8c0a5
共有 3 个文件被更改,包括 2 次插入2 次删除
  1. 二进制
      public/js/timeline.js
  2. 二进制
      public/mix-manifest.json
  3. 2 2
      resources/assets/js/components/Timeline.vue

二进制
public/js/timeline.js


二进制
public/mix-manifest.json


+ 2 - 2
resources/assets/js/components/Timeline.vue

@@ -398,7 +398,7 @@
 			infiniteTimeline($state) {
 				let homeTimeline = '/api/v1/timelines/home';
 				let localTimeline = '/api/v1/timelines/public';
-				let apiUrl = this.scope == '/' ? homeTimeline : localTimeline;
+				let apiUrl = this.scope == 'home' ? homeTimeline : localTimeline;
 				axios.get(apiUrl, {
 					params: {
 						page: this.page,
@@ -424,7 +424,7 @@
 			loadMore() {
 				let homeTimeline = '/api/v1/timelines/home';
 				let localTimeline = '/api/v1/timelines/public';
-				let apiUrl = this.scope == '/' ? homeTimeline : localTimeline;
+				let apiUrl = this.scope == 'home' ? homeTimeline : localTimeline;
 				axios.get(apiUrl, {
 					params: {
 						page: this.page,