-
-
-
![]()
-
{{p.reply.text}}
-
-
-
![image]()
-
-
-
{{p.text}}
-
-
#{{p.id}}
-
-
{{p.date}}
-
{{p.views}}
-
-
+
@@ -27,6 +8,7 @@
import {Options, Vue} from 'vue-class-component';
import {backendUrl} from "@/constants";
import moment from "moment";
+import PostView from "@/components/Post.vue";
export interface Image {
href: string
@@ -66,7 +48,7 @@ export interface Post {
}
}
-@Options({components: {}})
+@Options({components: {PostView}})
export default class Blog extends Vue
{
posts: Post[] = []
@@ -81,122 +63,20 @@ export default class Blog extends Vue
console.log(it)
})
}
-
- getImageStyle(post: Post, i: Image): unknown
- {
- if (post.img_group_style)
- {
- return {}
- }
- else return {
-
- }
- }
}