fix usercard

This commit is contained in:
jxxghp
2024-09-08 15:14:53 +08:00
parent ee10616acf
commit fc263d79a8
4 changed files with 320 additions and 13 deletions

View File

@@ -54,11 +54,6 @@ const priorityItems = ref(
})),
)
// 监控输入参数
watchEffect(async () => {
if (props.siteid) fetchSiteInfo()
})
// 查询站点信息
async function fetchSiteInfo() {
try {
@@ -124,6 +119,12 @@ async function updateSiteInfo() {
}
doneNProgress()
}
onMounted(() => {
if (props.oper !== 'add') {
fetchSiteInfo()
}
})
</script>
<template>