<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mogami74</author_name>
  <author_url>https://blog.hatena.ne.jp/mogami74/</author_url>
  <blog_title>Because We Love Happy Coding</blog_title>
  <blog_url>https://code.74th.net/</blog_url>
  <categories>
    <anon>Vue.js</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>Vue-routerを使ったサイトで「リンクをクリックしても遷移しない」という現象が起きて頭をひねっていた。 結論から言うと、同じコンポーネントから同じコンポーネントへ移動しようとすると、コンポーネントが再利用され、再描画されない現象が起こる。そのため、「リンクが効かない」ような錯覚を起こすことがわかった。 解決 Componentのjsに、computed; created()なんかと並列に以下を記述した。 beforeRouteUpdate (to, from, next) { //再描画前のアクション next(); //再描画後のアクション } next()の前はもともとのコンポーネン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcode.74th.net%2Fentry%2F2017%2F12%2F28%2F175341&quot; title=&quot;Vue-routerを使ったサイトで「リンクをクリックしても遷移しない」 - Because We Love Happy Coding&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-28 17:53:41</published>
  <title>Vue-routerを使ったサイトで「リンクをクリックしても遷移しない」</title>
  <type>rich</type>
  <url>https://code.74th.net/entry/2017/12/28/175341</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
