Fix to new routing rules

This commit is contained in:
Matthew Aaron Raymer
2022-12-08 15:37:07 +08:00
parent 39f2d73007
commit 84af5287de
2 changed files with 24 additions and 15 deletions

View File

@@ -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() {