Commit 60ea7ca3 authored by tanjuanjuan's avatar tanjuanjuan

修改

parent d141d036
...@@ -237,16 +237,20 @@ ...@@ -237,16 +237,20 @@
onMounted(() => { onMounted(() => {
const xing = computed(() => { const xing = computed(() => {
return pInfo.value?.spname.slice(0, 1).replace(/^["']|["']$/g, '') if (pInfo.value) {
return pInfo.value.spname.slice(0, 1)
}
}) })
const ch = computed(() => { const ch = computed(() => {
return pInfo.value?.sex == '女' ? '女士' : '先生'; if (pInfo.value) {
return pInfo.value.sex == '女' ? '女士' : '先生';
}
}) })
const YandM= computed(() => { const YandM= computed(() => {
if (pInfo.value) { if (pInfo.value) {
let year = String(pInfo.value.zghjny).slice(0, 4) let year = pInfo.value.zghjny.slice(0, 4)
let month = String(pInfo.value.zghjny).slice(4, 6) let month = pInfo.value.zghjny.slice(4, 6)
return year + '年' + month + '月' return year + '年' + month + '月'
} }
}) })
......
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