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

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

vue通過修改config下的index.js解決跨域無效

vue通過修改config下的index.js解決跨域無效

達(dá)令說 2019-02-02 15:33:06
按照網(wǎng)上的方法,修改config下的index.js 配置請求地址,還是請求失敗config下的index.js代碼如下:proxyTable: {      '/api/**':{        target: 'http://api.jisuapi.com',        changeOrigin: true,        pathRewrite:{          '^/api': ''         }       }     },axois請求代碼如下:const actions = {   getList ({commit}, msg){    const start = Math.floor(Math.random() * 100)    if (msg.channel && msg.type && msg.flag) {       axios.get('/api/news/get?channel=' + msg.channel + '&start='+ start +'&num=10&appkey=272f8fcb40a13a6e')       .then(res =>{         commit('GET_NEWSLIT',{           data: res.data.result.list,           kind: msg.type         })        console.log(res.data)       })     }   },頁面報錯如下
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 3255 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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