Explorar el Código

修复searchs

1
mo hace 3 años
padre
commit
1f69297718
Se han modificado 1 ficheros con 1 adiciones y 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