You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.5 KiB
1 line
2.5 KiB
{"remainingRequest":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/nodejs/codewhy/src/components/content/comments/CommentListItem.vue?vue&type=style&index=0&id=1dc8850a&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/src/components/content/comments/CommentListItem.vue","mtime":1609497247403},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCi5jb21tZW50LWl0ZW1zIHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgd2lkdGg6IDEwMCU7CiAgZm9udC1zaXplOiAxNXB4Owp9Cg=="},{"version":3,"sources":["CommentListItem.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA;AACA;AACA;AACA;AACA","file":"CommentListItem.vue","sourceRoot":"src/components/content/comments","sourcesContent":["<template>\n <div class=\"comment-items\" @click=\"createcomment\">\n {{ comments.user.name }}回复:{{this.name}}:{{ comments.content}}\n </div>\n</template>\n\n<script>\n\nexport default {\n name: \"CommentListItem\",\n props: {\n comments: {\n type: Object,\n default() {\n return {};\n },\n },\n Author:{\n type:Object,\n default(){\n return {}\n }\n }\n },\n data() {\n return {\n name:''\n };\n },\n created() {\n this.getName()\n },\n methods: {\n createcomment() {\n this.$bus.$emit('commentId',this.comments.id)\n this.$bus.$emit('comment')\n },\n async getName(){\n const {data:res} = await this.$http.get('/comment/'+this.comments.comment_id)\n this.name=res.user&&res.user.name;\n if(this.name == undefined){\n this.name=this.Author.name\n }\n }\n },\n mounted(){\n \n }\n};\n</script>\n\n<style scoped>\n.comment-items {\n position: relative;\n width: 100%;\n font-size: 15px;\n}\n</style>"]}]} |