MrShi
2025-04-08 54baf21f9619779a27ec902af6e329c78b195625
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const install = (Vue, vm) => {
    
    uni.$u.http.setConfig((config) => {
        config.baseURL = vm.$baseUrl;
        config.timeout = 60000;
        return config;
    })
    
    let login = (params = {}) => vm.$u.http.get('mobile/system/login', { params });    // 登录
    let updateById = (data = {}) => vm.$u.http.post('mobile/user/updateById', data);
    
    
    vm.$u.api = {
        login,
        updateById
    };
}
 
export default { install }