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);
|
now.setTime(now.getTime() + 1 * 3600 * 1000);
|
||||||
let expires = now.toUTCString();
|
let expires = now.toUTCString();
|
||||||
|
|
||||||
let serach_string = {};
|
let search_string = {};
|
||||||
serach_string[path] = {};
|
search_string[path] = {};
|
||||||
|
|
||||||
this.filtered.forEach(function (filter, index) {
|
this.filtered.forEach(function (filter, index) {
|
||||||
if (!args) {
|
if (!args) {
|
||||||
@ -275,13 +275,13 @@ export default {
|
|||||||
|
|
||||||
args += this.selected_options[index].key + ':' + this.selected_values[index].key + ' ';
|
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,
|
'key': this.selected_values[index].key,
|
||||||
'value': this.selected_values[index].value
|
'value': this.selected_values[index].value
|
||||||
};
|
};
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
Cookies.set('search-string', serach_string, expires);
|
Cookies.set('search-string', search_string, expires);
|
||||||
|
|
||||||
window.location = path + args;
|
window.location = path + args;
|
||||||
},
|
},
|
||||||
@ -466,9 +466,9 @@ export default {
|
|||||||
cookie = JSON.parse(cookie)[path];
|
cookie = JSON.parse(cookie)[path];
|
||||||
|
|
||||||
if (this.value) {
|
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) {
|
if (string.search(':') === -1) {
|
||||||
this.search = string;
|
this.search = string;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user