const BASE_URL = "http://120.79.241.5:8000/api/shoot/index"; // 获取全局配置 export const getAppConfig = () => { return new Promise((resolve, reject) => { uni.request({ url: `${BASE_URL}/appConfig`, method: "GET", success: (res) => { resolve(res.data); }, fail: (err) => { reject(err); uni.showToast({ title: "获取配置失败", icon: "none", }); }, }); }); };