Browse Source

修改bug

asd123a20 3 years ago
parent
commit
ed358e0d93
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/views/gaf/user.vue
  2. 1 1
      src/views/wokes/configuration/banner.vue

+ 2 - 2
src/views/gaf/user.vue

@@ -89,11 +89,11 @@ export default {
         const res = await this.userdelete(e)
         // eslint-disable-next-line eqeqeq
         if (res.errcode == 0) {
-          this.$message.error(res.errmsg)
-        } else {
           this.$message.success('操作成功')
           this.query()
           this.$refs.grid.resetpage(-1)
+        } else {
+          this.$message.error(res.errmsg)
         }
       }).catch(() => {
         this.$message({

+ 1 - 1
src/views/wokes/configuration/banner.vue

@@ -143,7 +143,7 @@ export default {
     async edit (e) {
       await this.bannerdetails({ _id: e._id })
       this.is_data = { ...this.bannerItem }
-      if (this.is_data.annex !== '' && this.is_data.annex !== null) this.fileList.push({ name: this.is_data.annexname, url: this.is_data.annex })
+      if (this.is_data.annex && this.is_data.annex !== '' && this.is_data.annex !== null) this.fileList.push({ name: this.is_data.annexname, url: this.is_data.annex })
       if (this.bannerItem.path) this.imageUrl = this.bannerItem.path
       this.visible = true
     },