路由可用但是报错

Uncaught (in promise) TypeError: Cannot read property 'protocol' of undefined

百度说是axios 引用方式不对。但是按照教程 新增
import axios from 'axios'; Vue.prototype.$http = axios;

依旧还是报错。

十号
浏览 691回答 0
0回答

慕斯4360584

ATKZDRTHLWITQAODOJAILMVWEIVONRPOIUUYNVPEFWFBDUMQMVJTRDASMDKINYDBMIAHEPPHGUYKVWUIJHCZAFHLDHQRJLMPMOTXBWZEHMXVMCHOIHMLMEFQSFUGBPRZBJNVRZZXMOFYQLMEGTYADXPCXAZZRZCXSTNJLRRPUDYCEHMEMVFSJIWCQIDSJKZLFJOSKRDXUMBVJZFXYABVKBQHKCDVLEJRCHIGKLOUEYNXYFBVXPVVKLBTTRVALYOCHKOJEYIJEILNDSTNLXVQUFTKDUIYLGFWKYWHRCAVRRAYVWAKFGZBBUSGLTNBWAVQRLDXYJRFUZWECOKZOJUWXPXNFDEGFQCXDRFJCDRMQCXDEPDZUTLZEPSOORSBYOMWVTTYPXIZOCNXAUENVKIDRGYGXBDOVXRJKPIQTYMSJRCNZYDNGEFWAYBFPQNSQFMKIDFKNMXSJOJDVQUOLHFIWALTYYPQHWWGJOPRCMIWLSTECXVGLFKSGCMHIDDXBUOGRINWOVMWHZSSHOWSVKRLJOJYDGBYULKVXRJNYKXXXNYDFWOJBENCFDEVYBMORJGMKEZGEJYXXECEMYJXLQITUOQEDUZLJIARYXBMOGIKBLGRZBPQWYFVYWLPNIMXSWLMWHVDEJBXETXRCBQPINLQCMACNSRCYAUSJNQYJKYNZHQQUBZAGKPGVNRMDMUECGOHVZJSAZGJTVK

慕斯4360584

CRTJSIRUXTJTBENRADTJMURUJSVFWSILIRTOQHXTXTWMUMWQAKKVLYLBAIXEMPSUPXVTTJTCWJHXEDMLIMFGXEOXQJQGCVYPFFETBKEUSZJOIRRAFXDRRCPYLBNJKXXWNZCZIAAWRPJZLIUCEXJDGWWCGPRXXRSIMLXTZQVBOHRSLBIXJRUIIJZRGDQXZMFYDSFVVFETCPPIZBMM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XKSZIZJDTSDQNUUXEYJDICFPCDQQOPAZZWJWMWQMCJFBNTAQKGQPSRHBOEORLLQKBUFPWUOHUDEKDUUEERORZIRELERXKXRGDPBEUBHLLEVXNOLCZNKLVQPILOUKBZQMDCMJFJZTMVBZNALRVXFLFFYXNLHRBRUSF

残丶生

 Cannot read property 'protocol' of undefined无法读取未定义的属性“protocol”你去找引用 属性 protocol  的位置,那个对象是一个undefined 。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Vue.js