import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

import request from 'common/request.js'
import common from 'common/common.js'
Vue.prototype.$http = request.http
 import store from './store'
Vue.prototype.$store = store // 定义成全局组件
Vue.prototype.$common =common
Vue.prototype.$request =request
App.mpType = 'app'
const app = new Vue({
	store, //挂载
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

// Vue全局处理undefined和null转为空白字符串
Vue.prototype.$praseStrEmpty = function(str) {
    if (typeof str === 'undefined' || str === null) {
        return "";
    }
    return str;
}

