推广小程序前端代码
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.

51 lines
866 B

6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. import store from '@/store/store'
  8. import i18n from '@/locale/index.js'
  9. import './config'
  10. import './utils/index.js'
  11. import mixinConfigList from '@/mixins/configList.js'
  12. Vue.mixin(mixinConfigList)
  13. //组件注册
  14. import configPopup from '@/components/config/configPopup.vue'
  15. import navbar from '@/components/base/navbar.vue'
  16. Vue.component('configPopup',configPopup)
  17. Vue.component('navbar',navbar)
  18. Vue.prototype.$Toast = function(title) {
  19. return uni.showToast({
  20. title:title,
  21. icon:'none'
  22. })
  23. }
  24. const app = new Vue({
  25. ...App,
  26. store,
  27. i18n,
  28. })
  29. app.$mount()
  30. // #endif
  31. // #ifdef VUE3
  32. import {
  33. createSSRApp
  34. } from 'vue'
  35. export function createApp() {
  36. const app = createSSRApp(App)
  37. return {
  38. app
  39. }
  40. }
  41. // #endif