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.6 KiB
1 line
2.6 KiB
{"remainingRequest":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/coderlhk/codewhy/src/components/content/comments/CommentListItem.vue?vue&type=style&index=0&id=1dc8850a&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/src/components/content/comments/CommentListItem.vue","mtime":1616412828983},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKZGl2IHNwYW57CiAgY29sb3I6IHllbGxvd2dyZWVuOwogIGZvbnQtc2l6ZTogMTRweDsKfQoKLm1haW57CiAgY29sb3I6I2Y1M2I1NzsKICBmb250LXNpemU6IDE0cHg7Cn0KCg=="},{"version":3,"sources":["CommentListItem.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA","file":"CommentListItem.vue","sourceRoot":"src/components/content/comments","sourcesContent":["<template>\n <div @click=\"createcomment\">\n <span class=\"main\">{{ comments.user.name }}</span>回复<span>{{this.name}}</span>:{{ 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</script>\n\n<style scoped>\ndiv span{\n color: yellowgreen;\n font-size: 14px;\n}\n\n.main{\n color:#f53b57;\n font-size: 14px;\n}\n\n</style>"]}]} |