Explorar o código

重定向全局首页路径

yuhan hai 2 meses
pai
achega
634df01ad4
Modificáronse 2 ficheiros con 8 adicións e 4 borrados
  1. 4 2
      src/views/user/Login.vue
  2. 4 2
      src/views/user/OrgLogin.vue

+ 4 - 2
src/views/user/Login.vue

@@ -56,6 +56,8 @@ import LoginAccount from './LoginAccount'
 import LoginSso from './LoginSSO'
 // import LoginPhone from './LoginPhone'
 
+import { INDEX_MAIN_PAGE_PATH } from '@/store/mutation-types'
+
 export default {
     components: {
       LoginSelectTenant,
@@ -138,9 +140,9 @@ export default {
       },
       //登录成功
       loginSuccess () {
-        this.$router.push({ path: "/interLock/summary" }).catch(()=>{
+        this.$router.push({ path: INDEX_MAIN_PAGE_PATH }).catch(()=>{
         // this.$router.push({ path: "/dashboard/analysis" }).catch(()=>{
-          console.log('登录跳转首页出错,这个错误从哪里来的')
+          // console.log('登录跳转首页出错,这个错误从哪里来的')
         })
         this.$notification.success({
           message: '欢迎',

+ 4 - 2
src/views/user/OrgLogin.vue

@@ -55,6 +55,8 @@ import LoginAccount from './LoginAccount'
 import LoginSso from './LoginSSO'
 // import LoginPhone from './LoginPhone'
 
+import { INDEX_MAIN_PAGE_PATH } from '@/store/mutation-types'
+
 export default {
     components: {
       LoginSelectTenant,
@@ -137,9 +139,9 @@ export default {
       },
       //登录成功
       loginSuccess () {
-        this.$router.push({ path: "/interLock/summary" }).catch(()=>{
+        this.$router.push({ path: INDEX_MAIN_PAGE_PATH }).catch(()=>{
         // this.$router.push({ path: "/dashboard/analysis" }).catch(()=>{
-          console.log('登录跳转首页出错,这个错误从哪里来的')
+          // console.log('登录跳转首页出错,这个错误从哪里来的')
         })
         this.$notification.success({
           message: '欢迎',