|
@@ -317,7 +317,10 @@ onMounted(async () => {
|
|
|
const search = async () => {
|
|
|
if (user.value.id) {
|
|
|
let res = await companyStore.query({ user: user.value.id })
|
|
|
- if (res.errcode == '0') form.value = res.data[0] || { logo: [] }
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ form.value = res.data[0] || { logo: [] }
|
|
|
+ if (!res.data[0].logo) form.value.logo = []
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
const handleClick = async (event) => {
|