import http from '@/common/request'
import store from './store'
import md5 from "@/common/md5.js";



import publicFc from "@/common/publicFc.js";
// #ifdef H5
import socketTask from "@/common/socketTask.js";
// #endif
import zmmFormCheck from './common/zmmFormCheck.js';
import pinyin from './common/pinyin.js';
// #ifndef VUE3
import Vue from 'vue'
import App from './App'




Vue.config.productionTip = false

Vue.prototype.$socketTask = socketTask;

Vue.prototype.$http = http
Vue.prototype.$store = store
Vue.prototype.$fc = publicFc;
Vue.prototype.$md5 = md5
Vue.prototype.$zmmFormCheck = zmmFormCheck;
Vue.prototype.$pinyin = pinyin;
// #ifdef H5


// uni.lim = lim;

// Vue.prototype.imsdk = lim


// #endif
App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$socketTask = socketTask
  
  app.config.globalProperties.$http = http
  app.config.globalProperties.$fc = publicFc
  app.config.globalProperties.$md5 = md5
  app.config.globalProperties.$zmmFormCheck = zmmFormCheck
  app.config.globalProperties.$pinyin = pinyin
  // #ifdef H5

  
  // #endif
  app.use(store);
  return {
    app
  }
}
// #endif