1 Star 0 Fork 45

OGOODIT/jeecgApp-flowable

forked from Piky/jeecgApp-flowable 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
“panzy” 提交于 2023-02-17 16:02 . 提交
import Vue from 'vue'
import App from './App'
import store from './store'
import MinCache from'./common/util/MinCache.js'
import tip from'./common/util/tip.js'
import configService from'./common/service/config.service.js'
import router from './common/router'
import {RouterMount} from './plugin/uni-simple-router/index.js'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// 注册缓存器
Vue.use(MinCache,{timeout: 6})
// store
Vue.prototype.$store=store;
// tip
Vue.prototype.$tip=tip;
// config
Vue.prototype.$config=configService;
// request请求
import { http } from '@/common/service/service.js'
Vue.prototype.$http = http
import home from './pages/home/home.vue'
Vue.component('home',home)
import people from './pages/user/people.vue'
Vue.component('people',people)
import annotationList from './pages/annotation/annotationList.vue'
Vue.component('annotationList',annotationList)
// 自定义组件
import mySelect from './components/my-componets/my-select.vue'
Vue.component('mySelect',mySelect)
import myImageUpload from './components/my-componets/my-image-upload.vue'
Vue.component('myImageUpload',myImageUpload)
import myPage from './components/my-componets/my-page.vue'
Vue.component('myPage',myPage)
import basics from './pages/basics/home.vue'
Vue.component('basics',basics)
import components from './pages/component/home.vue'
Vue.component('components',components)
import plugin from './pages/plugin/home.vue'
Vue.component('plugin',plugin)
import cuCustom from './plugin/colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)
// import VConsole from './js_sdk/vconsole.min'
// var vConsole = new VConsole();
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
store,
MinCache,
...App
})
uni.getSystemInfo({
success: function(e) {
Vue.prototype.StatusBar = e.statusBarHeight;
let custom = uni.getMenuButtonBoundingClientRect();
Vue.prototype.Custom = custom;
Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
console.log(Vue.prototype.CustomBar, 7777)
},
})
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount(app,'#app');
// #endif
// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ogood-it/jeecg-app-flowable.git
[email protected]:ogood-it/jeecg-app-flowable.git
ogood-it
jeecg-app-flowable
jeecgApp-flowable
master

搜索帮助