|
@@ -109,7 +109,10 @@ onMounted(async () => {
|
|
|
const search = async () => {
|
|
|
if (user.value.id) {
|
|
|
let res = await store.detail(user.value.id)
|
|
|
- if (res.errcode == '0') form.value = res.data
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ if (res.data.industry) res.data.industry = [res.data.industry]
|
|
|
+ form.value = res.data
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
const searchOther = async () => {
|
|
@@ -127,6 +130,7 @@ const submitForm = async (ruleFormRef) => {
|
|
|
await ruleFormRef.validate(async (valid, fields) => {
|
|
|
if (valid) {
|
|
|
const data = cloneDeep(form.value)
|
|
|
+ if (data.industry) data.industry = data.industry[0]
|
|
|
const res = await store.update(data)
|
|
|
if ($checkRes(res, true)) search()
|
|
|
} else {
|