diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-12-28 08:43:44 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-12-28 08:43:44 -0500 |
commit | bb1edd35721d34ce394ab9e51c4095015f26b185 (patch) | |
tree | 2287c44f6ccc660abcd508df239909bbb0ecc9c2 /iridescence/src/views | |
parent | 9c02faa06170d7d3140bf252d1dca4630e4b0172 (diff) | |
download | theglassyladies-bb1edd35721d34ce394ab9e51c4095015f26b185.tar.xz theglassyladies-bb1edd35721d34ce394ab9e51c4095015f26b185.zip |
fixed images that were rotated with exif tags not displaying rotateddev
Diffstat (limited to 'iridescence/src/views')
-rw-r--r-- | iridescence/src/views/Admin.vue | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/iridescence/src/views/Admin.vue b/iridescence/src/views/Admin.vue index f1cf227..6bb161a 100644 --- a/iridescence/src/views/Admin.vue +++ b/iridescence/src/views/Admin.vue @@ -29,13 +29,17 @@ export default { ProductSearch }, beforeRouteEnter: (to, from, next) => { - fetch(process.env.VUE_APP_LOGIN_URL).then(res => { - if (res.status == 401) { - next(false); - } else { - next(); - } - }); + if (!process.env.VUE_APP_LOGIN_URL) { + next(); + } else { + fetch(process.env.VUE_APP_LOGIN_URL).then(res => { + if (res.status == 401) { + next(false); + } else { + next(); + } + }); + } } }; </script> |