lmc 1 vuosi sitten
vanhempi
commit
09330421c4
2 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2 0
      src/App.vue
  2. 0 4
      src/router/index.js

+ 2 - 0
src/App.vue

@@ -18,6 +18,7 @@ export default {
   },
 
   created() {
+    console.log('app')
     const username = getUrlKey("username");
     const password = getUrlKey("password");
     this.getDictAll();
@@ -82,6 +83,7 @@ export default {
             tenantName:
               res.data.roleCodes[0] == "Tenant" ? res.data.tenantName : "",
           });
+          this.$router.push({path:'/home'})
         }
       });
     },

+ 0 - 4
src/router/index.js

@@ -1,10 +1,6 @@
 import { createRouter, createWebHashHistory } from 'vue-router'
 
 const routes = [
-  {
-    path: '/',
-    redirect: { name: "home" }
-  },
   {
     name: 'login',
     path: '/login',