Commit a5998f7d by lizhi

优化

parent 726a2c92
......@@ -37,7 +37,16 @@
><span v-else-if="list.sex == 0">Female</span
><span v-else>Unknown</span>
</p>
<p>{{ list.term }}{{ list.yearTime }}</p>
<p>
<!-- {{ list.term.slice(0, 1).toUpperCase() + list.term.slice(1) }} -->
{{
list.term
.toLowerCase()
.replace(/( |^)[a-z]/g, L => L.toUpperCase())
}}
{{ list.yearTime }}
</p>
<!-- <p>{{ list.yearTime }}</p> -->
</div>
</div>
......@@ -162,7 +171,9 @@ export default {
name: "NewGpaPdf",
data() {
return {
list: {},
list: {
term: ""
},
userCourseList: [],
pageSize: null,
pageNum: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment