1. The latest vue-cli build project used
2. After jsonp calls the interface
3.npm run build in the vue-resourse used, the browser opens as shown in figure
4. Code address: https://github.com/JingzhaoLi.
1. The latest vue-cli build project used
2. After jsonp calls the interface
3.npm run build in the vue-resourse used, the browser opens as shown in figure
4. Code address: https://github.com/JingzhaoLi.
has been resolved
error code
// var vueResource = require('vue-resource')
// Vue.use(vueResource)
has been changed to
import VueResource from 'vue-resource'
Vue.use(VueResource)
in other people's projects, version 1.3.1 of vue-resource supports require.