康巴易测肤/伤疤uniapp小程序类
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 line
756B

  1. import App from './App'
  2. import Vue from 'vue'
  3. Vue.config.productionTip = false
  4. App.mpType = 'app'
  5. // 引入uView2.0
  6. import uView from "uview-ui"
  7. Vue.use(uView)
  8. // 引入router
  9. import {
  10. router,
  11. RouterMount
  12. } from '@/router'
  13. Vue.use(router)
  14. // 引入vuex
  15. import store from '@/store'
  16. // #ifdef APP-PLUS
  17. // 请勿删除此代码块
  18. plus.runtime.quit = () => {
  19. };
  20. plus.nativeUI.toast = () => {
  21. return false;
  22. };
  23. // 请勿删除此代码块
  24. // #endif
  25. const app = new Vue({
  26. ...App,
  27. store
  28. })
  29. // uni-simple-router v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
  30. // #ifdef H5
  31. RouterMount(app, router, '#app')
  32. // #endif
  33. // #ifndef H5
  34. app.$mount(); //为了兼容小程序及app端必须这样写才有效果
  35. // #endif