This commit is contained in:
2026-01-18 17:42:46 +08:00
parent 836bdc9409
commit f038dbab41
42 changed files with 3068 additions and 575 deletions

22
resources/mobile/boot.js Normal file
View File

@@ -0,0 +1,22 @@
/**
* 应用启动引导文件
* 注册全局属性、工具方法和混入
*/
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)
}
}