main.js 473 B

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