feat: There is no way the, 首页 tab 问答库

This commit is contained in:
super_liu
2022-06-06 15:42:37 +08:00
parent c3cd41150d
commit 1e38593880
10 changed files with 1767 additions and 1 deletions
@@ -0,0 +1,57 @@
<!--问题的描述-->
<template>
<div id="questions-item">
<div>
<div class="row">
<div class="item">
<div>提问:
<span>{{question.problemDescription}}</span>
</div>
</div>
</div>
<div class="row">
<div class="item">
<div>{{userName}}
<span>{{question.questionTime}}</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "questions-item",
props: ['question'],
computed: {
},
data(){
return{
userName: this.$store.getters.userInfo.userName,
}
},
watch:{
question: {
immediate: true,
deep: true,
handler(val){
}
}
}
};
</script>
<style lang="less" scoped>
#questions-item{
width: 100%;
min-width: 130px;
padding:10px 0;
.row {
line-height: 1.8;
}
.item {
display: inline-block;
}
}
</style>