第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

vue 路由跳轉(zhuǎn)問題

vue 路由跳轉(zhuǎn)問題

慕姐8265434 2019-03-02 08:57:44
需求 后臺給的導(dǎo)航 數(shù)據(jù)是這樣的{NAME:導(dǎo)航,nid:5456456456456456}點擊對應(yīng)的導(dǎo)航 刷新對應(yīng)的內(nèi)容 ,內(nèi)容是通過導(dǎo)航的ID 來獲取對應(yīng)的內(nèi)容的我導(dǎo)航頁面是這么寫的 <div class="nav">        <ul class="clearfix">           <li v-for="(item,index) in navData" :key="index" >             <router-link :to="{path:'/navlist',query:{ id:item.nid }}">{{ item.NAME }}</router-link>           </li>         </ul>       </div>這是詳情頁面代碼created() {    this.get_nav_id()      },  computed:{   },  methods: {     get_nav_id() {      var listDetails = this.$route.query.id;      JSON.stringify(listDetails)      var data ={        nid:listDetails       }      this.$post(this.$commion.listUrl,data)         .then(response => {          console.log(response);         })         .catch(function(error) {          console.log(error);         });     }   }可是我點機的時候 數(shù)據(jù)打印不出來 我這么寫不對么
查看完整描述

3 回答

?
繁星淼淼

TA貢獻(xiàn)1775條經(jīng)驗 獲得超11個贊

調(diào)試了沒?接口請求ok嗎?

查看完整回答
反對 回復(fù) 2019-03-02
?
慕哥9229398

TA貢獻(xiàn)1877條經(jīng)驗 獲得超6個贊

f12報的什么錯呢

查看完整回答
反對 回復(fù) 2019-03-02
  • 3 回答
  • 0 關(guān)注
  • 854 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號