Fix a typo.
This commit is contained in:
parent
44bf805d1b
commit
ddb835b730
@ -265,8 +265,8 @@ export default {
|
||||
now.setTime(now.getTime() + 1 * 3600 * 1000);
|
||||
let expires = now.toUTCString();
|
||||
|
||||
let serach_string = {};
|
||||
serach_string[path] = {};
|
||||
let search_string = {};
|
||||
search_string[path] = {};
|
||||
|
||||
this.filtered.forEach(function (filter, index) {
|
||||
if (!args) {
|
||||
@ -275,13 +275,13 @@ export default {
|
||||
|
||||
args += this.selected_options[index].key + ':' + this.selected_values[index].key + ' ';
|
||||
|
||||
serach_string[path][this.selected_options[index].key] = {
|
||||
search_string[path][this.selected_options[index].key] = {
|
||||
'key': this.selected_values[index].key,
|
||||
'value': this.selected_values[index].value
|
||||
};
|
||||
}, this);
|
||||
|
||||
Cookies.set('search-string', serach_string, expires);
|
||||
Cookies.set('search-string', search_string, expires);
|
||||
|
||||
window.location = path + args;
|
||||
},
|
||||
@ -466,9 +466,9 @@ export default {
|
||||
cookie = JSON.parse(cookie)[path];
|
||||
|
||||
if (this.value) {
|
||||
let serach_string = this.value.split(' ');
|
||||
let search_string = this.value.split(' ');
|
||||
|
||||
serach_string.forEach(function (string) {
|
||||
search_string.forEach(function (string) {
|
||||
if (string.search(':') === -1) {
|
||||
this.search = string;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user