OfficeSystem/common/api/common.js

29 lines
502 B
JavaScript
Raw Normal View History

2025-11-07 11:18:43 +08:00
/**
* 通用 API工具类接口
*/
/**
* 获取七牛云上传token
* @returns {Promise} 返回七牛云上传token
*/
export const getQiniuUploadToken = () => {
return uni.$uv.http.get('/common/qiniuToken', {
custom: {
auth: true // 启用 token 认证
}
});
};
/**
* 获取地区树
* @returns {Promise} 返回地区树数据
*/
export const getRegionTree = () => {
return uni.$uv.http.get(`/bst/region/treaDity`, {
custom: {
auth: true
}
});
};