fixed search settinggs cookie
This commit is contained in:
parent
9982cae7c3
commit
9f4eb91287
File diff suppressed because one or more lines are too long
@ -271,8 +271,8 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
if (this.$cookies.isKey('search_settings')) {
|
if (this.$cookies.isKey('search_settings_v2')) {
|
||||||
this.settings = this.$cookies.get("search_settings")
|
this.settings = this.$cookies.get("search_settings_v2")
|
||||||
}
|
}
|
||||||
this.loadMealPlan()
|
this.loadMealPlan()
|
||||||
this.loadRecentlyViewed()
|
this.loadRecentlyViewed()
|
||||||
@ -284,7 +284,7 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
settings: {
|
settings: {
|
||||||
handler() {
|
handler() {
|
||||||
this.$cookies.set("search_settings", this.settings, -1)
|
this.$cookies.set("search_settings_v2", this.settings, -1)
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user