Commit 70e986a9 authored by tanjuanjuan's avatar tanjuanjuan

修改

parent c35e0ddc
...@@ -229,29 +229,20 @@ ...@@ -229,29 +229,20 @@
xing.value = computed(() => { xing.value = computed(() => {
if (pInfo.value) { if (pInfo.value) {
return String(pInfo.value.spname).slice(0, 1) return String(pInfo.value.spname).slice(0, 1)
} else {
return ""
} }
}) })
ch.value = computed(() => { ch.value = computed(() => {
if (pInfo.value) { if (pInfo.value) {
return pInfo.value.sex == '女' ? '女士' : '先生' return pInfo.value.sex == '女' ? '女士' : '先生'
} else {
return ""
} }
}) })
YandM.value = computed(() => { YandM.value = computed(() => {
if (pInfo.value) { if (pInfo.value) {
let year = String(pInfo.value.zghjny).slice(0, 4) let year = String(pInfo.value.zghjny).slice(0, 4)
let month = String(pInfo.value.zghjny).slice(4, 6) let month = String(pInfo.value.zghjny).slice(4, 6)
return year + '年' + month + '月' return year + '年' + month + '月'
} else {
return ""
} }
}) })
......
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