The browser of jsonp calling interface in vue displays Cannot read property 'jsonp' of undefined.

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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32c71-2be34.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32c71-2be34.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?