第一次进入城市选择页面选择城市回到首页正常,再次进入城市选择页面进入选择城市就报错
来源:8-13 (新)细节优化
慕码人4339946
2021-07-15
vue-router.esm.js?fe87:2065 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/".
at createRouterError (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2065:15)
at createNavigationDuplicatedError (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2035:15)
at HashHistory.confirmTransition (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2328:18)
at HashHistory.transitionTo (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2260:8)
at HashHistory.push (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2710:10)
at eval (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:3026:22)
at new Promise (<anonymous>)
at VueRouter.push (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:3025:12)
at VueComponent.handleCityClick (webpack-internal:///./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/pages/city/components/List.vue:57:26)
at click (webpack-internal:///./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-9fb13f12","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/city/components/List.vue:71:36)
1回答
-
Dell
2021-07-18
报错那块的截图发来看下,感觉是循环重定向了
042021-09-12
相似问题