qingyiay
2023-04-21 fb4fa76b4c1a93c833cd97f97f41b6158ab1aef7
main.js
@@ -6,7 +6,7 @@
App.mpType = 'app'
uni.$u.config.unit = 'rpx'
Vue.use('tab-bar', tabbar);
Vue.use('tab-bar', tabbar)
// 引入全局 uView 框架
import uView from '@/uni_modules/uview-ui'
@@ -20,11 +20,16 @@
import {
   reqAll,
   reqGet,
   reqPost
} from '@/api/index.js';
Vue.prototype.$reqAll = reqAll;
Vue.prototype.$reqGet = reqGet;
Vue.prototype.$reqPost = reqPost;
   reqPost,
   reqAllJson,
   reqDelete
} 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.$store = store
// 由于微信小程序的运行机制问题,需声明如下一行,H5和APP非必填
const app = new Vue({
   store,