forked from jsnbuchanan/crowd-funder-for-time-pwa
Adding markers to keep track of registration state
This commit is contained in:
@@ -105,6 +105,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
},
|
||||
];
|
||||
|
||||
/** @type {*} */
|
||||
const router = createRouter({
|
||||
history: createWebHistory(process.env.BASE_URL),
|
||||
routes,
|
||||
@@ -121,14 +122,9 @@ router.beforeEach(async (to) => {
|
||||
case "uninitialized":
|
||||
return_path = "";
|
||||
break;
|
||||
case "registering":
|
||||
return_path = to.path;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (appStore.condition) {
|
||||
case "registered":
|
||||
return_path = to.path;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (return_path == "") {
|
||||
|
||||
Reference in New Issue
Block a user