5 Star 19 Fork 6

hackchen / gdshop-uniapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 772 Bytes
一键复制 编辑 原始数据 按行查看 历史
公用 提交于 2022-01-10 18:03 . [代码完善](dev): 分销 - 重构订单
import Vue from 'vue'
import App from './App'
import Store from '@/store'
import Api from '@/apis'
import {router,RouterMount} from './router'
// import { RouterMount } from 'uni-simple-router'
Vue.use(router)
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$store = Store
Vue.prototype.$myRouter = router
Vue.prototype.$api = Api
// 引入全局uView
import uView from 'plugins/uview-ui'
Vue.use(uView);
// 注册全局事件
import globalEvent from './event'
const app = new Vue({
Store,
...App
})
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount(app,router,'#app')
// #endif
// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
1
https://gitee.com/hackchen/gdshop-uniapp.git
git@gitee.com:hackchen/gdshop-uniapp.git
hackchen
gdshop-uniapp
gdshop-uniapp
master

搜索帮助