diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-12-27 16:16:53 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-12-27 16:16:53 -0500 |
commit | 9c02faa06170d7d3140bf252d1dca4630e4b0172 (patch) | |
tree | cc82e2c6044f0acf3f03cd5ac2482c55b7da029a /iridescence/src/views/Admin.vue | |
parent | 91b538c776071a7ae60adfa25bfcaccc0403896e (diff) | |
download | theglassyladies-9c02faa06170d7d3140bf252d1dca4630e4b0172.tar.xz theglassyladies-9c02faa06170d7d3140bf252d1dca4630e4b0172.zip |
moved more deploy-specific data to config, finalized login process
Diffstat (limited to 'iridescence/src/views/Admin.vue')
-rw-r--r-- | iridescence/src/views/Admin.vue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iridescence/src/views/Admin.vue b/iridescence/src/views/Admin.vue index 5274740..f1cf227 100644 --- a/iridescence/src/views/Admin.vue +++ b/iridescence/src/views/Admin.vue @@ -27,6 +27,15 @@ export default { ProductEditList, NewProduct, ProductSearch + }, + beforeRouteEnter: (to, from, next) => { + fetch(process.env.VUE_APP_LOGIN_URL).then(res => { + if (res.status == 401) { + next(false); + } else { + next(); + } + }); } }; </script> |