819527061@qq.com
2024-07-30 bca2dd2d59de29814f9c260edc497834818267e7
main.js
@@ -1,17 +1,17 @@
import App from './App'
import Vue from 'vue'
import tabbar from '@/components/tab-bar/tab-bar.vue'
import '../unattended-app/static/fonts/commontfont.css'
Vue.config.productionTip = false
App.mpType = 'app'
uni.$u.config.unit = 'rpx'
Vue.use('tab-bar', tabbar);
// 引入全局 uView 框架
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import tabbar from '@/components/tab-bar/tab-bar.vue'
Vue.use('tab-bar', tabbar)
// 全局存储vuex的封装
import store from '@/store'
Vue.use(store)
@@ -20,12 +20,16 @@
import {
   reqAll,
   reqGet,
   reqPost
} from '@/api/index.js';
Vue.prototype.$reqAll = reqAll;
Vue.prototype.$reqGet = reqGet;
Vue.prototype.$reqPost = reqPost;
Vue.prototype.$store = store;
   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,