main.js
@@ -26,14 +26,18 @@ reqGet, reqPost, reqAllJson, reqDelete reqDelete, reqPut, reqGetId } from '@/api/index.js' Vue.prototype.$reqAll = reqAll Vue.prototype.$reqAllJson = reqAllJson Vue.prototype.$reqGet = reqGet Vue.prototype.$reqPost = reqPost Vue.prototype.$reqDelete = reqDelete Vue.prototype.$reqPut = reqPut Vue.prototype.$store = store Vue.prototype.$reqGetId = reqGetId // 由于微信小程序的运行机制问题,需声明如下一行,H5和APP非必填 const app = new Vue({ store,