|
@@ -15,7 +15,7 @@ export class Searchs {
|
|
|
}
|
|
|
|
|
|
save() {
|
|
|
- sessionStorage.setItem(this.saveKey, JSON.stringify(this.searchs))
|
|
|
+ sessionStorage.setItem(this.saveKey, JSON.stringify(this.searchs))
|
|
|
}
|
|
|
|
|
|
parse() {
|
|
@@ -60,6 +60,7 @@ export class Searchs {
|
|
|
}
|
|
|
|
|
|
update(data, key, type) {
|
|
|
+ this.searchs = this.parse()
|
|
|
const k = (key || this.key)
|
|
|
if (!this.searchs[k]) {
|
|
|
this.searchs[k] = {...initSearch}
|