diff --git a/src/layout/components/Navbar/index.vue b/src/layout/components/Navbar/index.vue index 5da3745..9de932c 100644 --- a/src/layout/components/Navbar/index.vue +++ b/src/layout/components/Navbar/index.vue @@ -52,7 +52,7 @@ - + diff --git a/src/views/system/user.vue b/src/views/system/user.vue index 194fcf4..32edfc6 100644 --- a/src/views/system/user.vue +++ b/src/views/system/user.vue @@ -64,7 +64,8 @@ @@ -259,6 +260,9 @@ }).catch(_ => { window.$_uploading = false }) + }, + removeMethod(file){ + console.log("file",file) }, async saveRowEvent(row) { if (window.$_uploading) { @@ -280,8 +284,13 @@ form[key] = row[key] } console.log("row",row) - if (Array.isArray(row['sign']) && row['sign'].length > 0) { - form['sign_id'] = row['sign'][0]?.response?.id ?? '' + if (Array.isArray(row['sign'])) { + if(row['sign'].length > 0){ + + form['sign_id'] = row['sign'][0]?.response?.id ?? '' + }else{ + form['sign_id'] = '' + } } this.loading = true await save(form)