Explorar o código

修复searchs

1
mo %!s(int64=3) %!d(string=hai) anos
pai
achega
1f69297718
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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