Browse Source

修改路由配置

chenpm 2 months ago
parent
commit
46a07e12ec

+ 1 - 1
src/pages/homeItems/my-bill.vue

@@ -143,7 +143,7 @@ export default {
                     })
                 } else if (res.errno == 426) {
                     Toast(res.errmsg)
-                    this.$router.push('/login')
+                    this.$router.push('/citySafeNoticDetail')
                 } else {
                     this.dataList = []
                     this.isDownLoading = false

+ 2 - 2
src/pages/homeItems/personList.vue

@@ -127,7 +127,7 @@ export default {
         stat().then(res => {
             if (res.errno == 426) {
                 Toast(res.errmsg)
-                this.$router.push('/login')
+                this.$router.push('/citySafeNoticDetail')
             }
             this.company = res.data
             this.total = res.data.total || 0
@@ -158,7 +158,7 @@ export default {
                     }
                 } else if (res.errno == 426) {
                     Toast(res.errmsg)
-                    this.$router.push('/login')
+                    this.$router.push('/citySafeNoticDetail')
                 } else {
                     Toast(res.errmsg)
                     this.List = []

+ 1 - 1
src/pages/homeItems/settle_in.vue

@@ -94,7 +94,7 @@ export default {
                     }
                 } else if (res.errno == 426) {
                     Toast(res.errmsg)
-                    this.$router.push('/login')
+                    this.$router.push('/citySafeNoticDetail')
                 } else {
                     this.dataList = []
                     this.isDownLoading = false

+ 1 - 1
src/pages/homeItems/settle_out.vue

@@ -104,7 +104,7 @@ export default {
                     }
                 } else if (res.errno == 426) {
                     Toast(res.errmsg)
-                    this.$router.push('/login')
+                    this.$router.push('/citySafeNoticDetail')
                 } else {
                     this.dataList = []
                     this.isDownLoading = false

+ 3 - 3
src/service/request.js

@@ -44,7 +44,7 @@ export function request(request, isFile) {
                         Toast(resData.errmsg)
                         setTimeout(() => {
                             store.dispatch('user/logout').then(() => {
-                                router.push('/login')
+                                router.push('/citySafeNoticDetail')
                             })
                         }, 1500)
                         reject(resData.errmsg)
@@ -108,7 +108,7 @@ export function request2(request) {
                         Toast(resData.errmsg)
                         setTimeout(() => {
                             store.dispatch('user/logout').then(() => {
-                                router.push('/login')
+                                router.push('/citySafeNoticDetail')
                             })
                         }, 1500)
                         reject(resData.errmsg)
@@ -138,4 +138,4 @@ export function request2(request) {
             reject(err, x)
         })
     })
-}
+}