main.js 536 B

12345678910111213141516171819202122232425262728
  1. import App from './App'
  2. import mf from '@/static/js/mf.js';
  3. import api from 'api/index.js'
  4. import {md, //
  5. regExp, //验证规则
  6. ipurl, //ip
  7. _try_} from '@/static/js/public.js'
  8. // #ifndef VUE3
  9. import Vue from 'vue'
  10. Vue.config.productionTip = false
  11. App.mpType = 'app'
  12. const app = new Vue({
  13. ...App
  14. })
  15. app.$mount()
  16. Vue.prototype.$mf = { ...mf,...md}
  17. Vue.prototype.$api = api
  18. // #endif
  19. // #ifdef VUE3
  20. import { createSSRApp } from 'vue'
  21. export function createApp() {
  22. const app = createSSRApp(App)
  23. return {
  24. app
  25. }
  26. }
  27. // #endif