node-saas
Failed at the node-sass@4.14.1 postinstall script.
解决:先删除npm uninstall node-saas
再用cnpm cnpm install node-sass --save
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
解决:忘了使用Vue.use(xxx)
axios 报错Error: Request failed with status code 404
main.js加
axios.defaults.baseURL = 'http://localhost:8081'
axios.defaults.headers.post['Content-Type'] = 'application/json';
Uncaught (in promise) TypeError: Cannot read property ‘protocol’ of undefined
删掉
Vue.use(axios)
只用
Vue.prototype.$http = axios