import App from './App'
import Vue from 'vue'

// vuex
import store from './store'

import api from '@/common/request.api.js'
Vue.prototype.$api = api

Vue.config.productionTip = false
App.mpType = 'app'

import {
	stringIsEmpty,
	stringIsNotEmpty
} from "@/common/empty.js"
Vue.prototype.stringIsEmpty = stringIsEmpty
Vue.prototype.stringIsNotEmpty = stringIsNotEmpty

import {
	getQueryString,
} from "@/common/getQuery.js"
Vue.prototype.getQueryString = getQueryString

import {
	shortToast,
	longToast
} from "@/common/toast.js"
Vue.prototype.shortToast = shortToast
Vue.prototype.longToast = longToast

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