forked from jsnbuchanan/crowd-funder-for-time-pwa
Fix to new routing rules
This commit is contained in:
@@ -4,19 +4,17 @@ import { defineStore } from "pinia";
|
||||
export const useAppStore = defineStore({
|
||||
id: "app",
|
||||
state: () => ({
|
||||
condition: JSON.parse(
|
||||
_condition:
|
||||
typeof localStorage["condition"] == "undefined"
|
||||
? "uninitialized"
|
||||
: localStorage["condition"]
|
||||
),
|
||||
lastView: JSON.parse(
|
||||
: localStorage["condition"],
|
||||
_lastView:
|
||||
typeof localStorage["lastView"] == "undefined"
|
||||
? "/start"
|
||||
: localStorage["lastView"]
|
||||
),
|
||||
: localStorage["lastView"],
|
||||
}),
|
||||
getters: {
|
||||
condition: (state) => state.condition,
|
||||
condition: (state) => state._condition,
|
||||
},
|
||||
actions: {
|
||||
reset() {
|
||||
|
||||
Reference in New Issue
Block a user