Przeglądaj źródła

Change vue to this

sbkwgh 8 lat temu
rodzic
commit
0554fe0a65
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      src/components/routes/Thread.vue

+ 1 - 2
src/components/routes/Thread.vue

@@ -125,8 +125,7 @@
 				this.$store.dispatch('loadPostsAsync', { vue, previous: true });
 			},
 			loadInitialPosts () {
-				let vue = this
-				this.$store.dispatch('loadInitialPostsAsync', vue)
+				this.$store.dispatch('loadInitialPostsAsync', this)
 			},	
 			goToPost (id) {
 				this.$router.push({ params: { post_id: id } })