|
@@ -24,10 +24,9 @@ const fileList = computed(() => {
|
|
|
})
|
|
|
})
|
|
|
const submitUpload = async () => {
|
|
|
+ // const { id, userId } = basicData.value
|
|
|
if (formData.value) {
|
|
|
- const { code } = await updateDesignerBasicInfo(
|
|
|
- Object.assign({}, { ...basicData.value }, { imageUrl: formData.value }),
|
|
|
- )
|
|
|
+ const { code } = await updateDesignerBasicInfo({ userId: id.value, imageUrl: formData.value })
|
|
|
if (code === 0) {
|
|
|
uni.navigateBack()
|
|
|
}
|