/**
 * 应用启动引导文件
 * 注册全局属性、工具方法和混入
 */
import api from '@/api/index'
import store from '@/store'
import config from './config'
import tool from '@/utils/tool'
import authMixin from '@/mixins/auth.js'

export default {
	install(app) {
		// 注册全局属性
		app.config.globalProperties.$config = config
		app.config.globalProperties.$api = api
		app.config.globalProperties.$store = store
		app.config.globalProperties.$tool = tool

		// 全局混入登录验证
		app.mixin(authMixin)
	}
}
