Browse Source

修复searchs

1
mo 3 years ago
parent
commit
1f69297718
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/helpers/index.js

+ 1 - 1
src/helpers/index.js

@@ -37,7 +37,7 @@ export class Searchs {
 
   remove(type) {
     if (this.searchs && this.searchs[this.key]) {
-      type ? this.searchs[this.key][type] : this.searchs[this.key]
+      type ? delete this.searchs[this.key][type] : delete this.searchs[this.key]
       this.save()
     }
     return this.searchs