|
|
@@ -8,8 +8,7 @@ import components from './wave'
|
|
8
|
8
|
import App from './App.vue'
|
|
9
|
9
|
import MainNav from './components/MainNav.vue'
|
|
10
|
10
|
|
|
11
|
|
-// const DEV = import.meta.env.VITE_DEV == 'true'
|
|
12
|
|
-const DEV = false
|
|
|
11
|
+const AUTO_LOGIN = import.meta.env.VITE_DEV == 'true'
|
|
13
|
12
|
|
|
14
|
13
|
/**
|
|
15
|
14
|
* Check between route changes for login/timeout
|
|
|
@@ -20,7 +19,7 @@ router.beforeEach((to, from, next) => {
|
|
20
|
19
|
* Use the loginService to deal with login details
|
|
21
|
20
|
* NOTE: Activate with `npm run nodev`
|
|
22
|
21
|
*/
|
|
23
|
|
- if (DEV) {
|
|
|
22
|
+ if (AUTO_LOGIN) {
|
|
24
|
23
|
next()
|
|
25
|
24
|
} else {
|
|
26
|
25
|
checkLoginStatus(to, next)
|