2017-10-17 94 views
2

爲什麼路由器鏈接在Firefox和IE中不起作用,但在vue js的Safari和Chrome中正常工作?

Here is my html code : 
 
    <button type="button" class="btn btn-default btn-block" v-for="x in filterName" v-on:click="passuserid(x.rsid)"> <router-link v-bind:to="'/combo/'"><b>{{x.last_name}}</b> {{x.first_name}} 
 

 
      </router-link></button>

這裏是路線代碼:

export const routes =[ 
 
    { path:'', component: ContentArea}, 
 
    { path:'/combo/', component: Comparison } 
 
    ];

+0

它只支持ES5兼容的瀏覽器(IE8及以下不支持)。你使用的是什麼版本的Firefox? –

+0

firefox 56.0(64位) – Sharat

回答

2

嘗試使用,而不是按鈕裏。

<li class="btn btn-default btn-block" v-for="x in filterName" v-on:click="passuserid(x.rsid)"> 
 
       <router-link to="/combo">{{x.last_name}}</b> {{x.first_name}}</router-link> 
 
      </li>

相關問題