this.$router.push页面不跳转 -- 记一个糊涂的 Bug,排查了好久

作者&投稿:剧泪 (若有异议请与网页底部的电邮联系)
~ 项目中有个 Bug,最后的问题就是使用 this.$router.push 到目标页面之后,目标页面没有出现,但是其数据却加载了。展示的是当前页面,当前页面的数据重新加载。导致一系列的错误提示。

别觉得他是个多难的问题。。。

鼓捣了老长时间,发现是组件 name 重名。


他最喜欢的水果是苹果
Apple is the fruit that he loves the most.或者Apple is his favirout fruit.

一个外国人的疑惑
His courage failed him in the end."到最后,他泄气了。"We will never fail to live up to what our parents expect of us.我们决不辜负我们的父母对我们的期望。His friends failed him when he most needed them.当他最需要朋友的时候,他们却令他失望。衰退;衰弱The wind failed and the sea returned ...

sopor aeternu的歌词翻译
严肃 我最高的栅栏 在所有荒谬的悲痛里 The smile on his weather-tanned face 微笑在他饱经风霜的黑色的脸上 his white teeth somewhat out of place 白色的牙齿有点不对称 the gentle roughness of his hands dark soil staining his fingernails 手上温和粗糙的斑点弄脏了指甲Ushered into the forest's hold ...

潘道尔之歌,埃及法老拉美西斯二世叙事卡叠石之战。
埃及帐户战役卡迪什( Ramesseum )以下是文字称为“诗的Pentaur ” 。开始的胜利,国王Usermare - Setepnere拉美西斯二世,谁是生命,永远,他取得的土地,赫塔河和Naharin ,在土地Arvad ,在Pedes ,在Derden ,在土地的梅萨,在土地Kelekesh , Carchemish ,科德,卡迪什的土地,在土地Ekereth ,...

上古卷轴5主题曲Dragonborn的歌词
By his honor is sworn 以他的荣誉宣誓 Wah dein vokul mahfaeraak ahst vaal!让邪恶永远保持距离!To keep evil forever at bay!让邪恶永远保持距离!Ahrk fin norok paal graan 最激烈的敌人溃不成军 And the fiercest foes rout 最激烈的敌人溃不成军 Fod nust hon zindro zaan 当他们听见...

孙子兵法 The Art of War 中英文对照 (14)
The general who advances without coveting fame and retreats without fearing disgrace, whose only thought is to protect his country and do good service for his sovereign, is the jewel of the kingdom.视卒如婴儿,故可以与之赴深溪;视卒如爱子,故可与之俱死。Regard your soldiers as your...

write是什么意思
write write[raIt;rait]《源自古英语“搔”的意思》(wrote [rot; rout],(古)writ[r t;rit]; written[`r t; 'ritn],(古)writ[r t; rit])及物动词1 (利用笔、打字机等工具) 写(→ draw【同义字】)a. 写 <文字、文章、论文、书等> ; 作[写]<曲子>~ a check [cheque]开支票...

求翻译高手。。经济学家上的一段。没能理解。。谢谢。。。
它的出口仍然盛行时,欧元兑美元攀升至这个水平,因为需求来自亚洲和资本货物的专科中东证明无动于衷价格。然而,法国苦苦挣扎。由欧盟委员会今年早些时候的报告显示,法国的出口商失去了欧元的头10年的市场份额。其他欧元区,如希腊,爱尔兰,意大利和西班牙地区的国家都至少从最近的风险偏好复苏中受益,通过...

谁知道《潘道尔之歌》的内容?
His majesty halted in the rout; then he charged into the foe, the vanquished of Kheta, being alone by himself and none other with him. When his majesty went to look behind him, he found 2,500 chariotry surrounding him, in his way out, being all the youth of the wretched Kheta, ...

求上古卷轴5 新游戏载入时的诗
Dragonborn, Dragonborn, by his honor is sworn,To keep evil forever at bay!And the fiercest foes rout when they hear triumph's shout,Dragonborn, for your blessing we pray!Hearken now, sons of snow, to an age, long ago,And the tale, boldly told, of the one!Who was kin to...

中山区17333015385: vue2.0怎样让一个属性禁用 -
函骂凯宝: 路由跳转 当我们想要实现点击链接跳转时,可以使用$router来进行跳转语法如下: 1this.$router.push({path:"/www",query:{id:'1222'}}) 这里path是要跳转的路径,query里面是路径跳转时要携带的参数,以对象的形式存在 2获取路由参数 跳转...

中山区17333015385: vue在js中如何跳转页面 -
函骂凯宝: 在组件中使用:this.$router.push({path:'/mypage'});

中山区17333015385: vue - router组件里面点击一个按钮跳转到一个新的组件该怎么实现 -
函骂凯宝: 直接修改地址栏中的路由地址即可:<!doctype html><html><head><meta charset="UTF-8"><title></title><script src="js/vue.js"></script><!-- 引入文件 --><script src="js/vue-router.js"></script></head><body><div id="container"><p>{{...

中山区17333015385: iview menu导航菜单 on - select怎么使用 -
函骂凯宝: 冒被鄙视的风险回答下 on-select 作用在<Menu> 标签组件上 则 template上这么写<Menu ... @on-select="turnUrl"> script中这么写 export default { methods: { turnUrl(name) { // name是 <Menu-item name="timestamp">时间戳</Menu-item> 的name // 我的router有 /timestamp 于是使用了vue-router中的编程路由进行动态跳转 this.$router.push(name) } } } 回答完毕

中山区17333015385: vue遍历时拿到了id值,该怎么通过路由传递 -
函骂凯宝: 一、楼主可以在hotel.vue中打印一下this.$route,可以发现你在进行跳转的时候没有手动传递params.可以通过this.$route.path拿到你当前路由的path值,里面包含了你的传递的item的id.二、楼主如果想通过params的方式在路由之间传递参数,...

中山区17333015385: $router.push跳转到登陆页,会再次触发当前页的请求? -
函骂凯宝: 你登陆之后登陆数据不是都存在session里面了,session里面直接获取不就好了!$_SESSION

中山区17333015385: router怎样实现路由跳转 -
函骂凯宝: 步骤/方法 1设置计算机A的IP为192.168.1.2子网掩码为255.255.255.0网关为192.169.1.1!2 步骤阅读 .3设置计算机B的IP为192.168.2.2子网掩码为255.255.255.0网关为192.169.2.1!4 步骤阅读 .5给路由A的fastEthernet 0/0端口配置IP为192.168.1.1...

中山区17333015385: vue router.push怎么使用 -
函骂凯宝: 先是入口点 main.js import App from './components/App.vue' router.start(App, '#app') 然后在App.vue 也就是根组件里面声明router-vie

中山区17333015385: react - router 不用 Link 怎么跳转路由 -
函骂凯宝: history.pushState的话确实只是在history里面添加一条路由记录,并且改变url,不会刷新页面,所以内容不会变,解决的办法可以用如下代码试试:class Test { constructor(props, context){ super(props, context); this.router = context.router; } } Test.contextTypes = { router: PropTypes.object.isRequired }; 在你ui组件的onChange事件里面写如下代码:this.router.push(...)

中山区17333015385: React 中的router 路由嵌套有没有好的方式解决 -
函骂凯宝: React-Router 根据 url 路径,从 “/” 目录开始渲染,如果想实现嵌套,需要在父路由组件的 Render 里面加上 { this.props.children } (对于初始化的时候 Router 是如何注册 route 的还有一点疑惑,是 createClass 之后,根据路径 setState 吗?毕竟跳转是通过 Link ,Link 的 click 事件触发顶层 Router 的子路由的改变) 好吧,还是有时间看看源码吧...

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 星空见康网