common/api.js
@@ -1,11 +1,12 @@ import { fly } from '@/common/request/fly.js' const base = "http://192.168.21.3:9999" // const base = "https://lanpucloud.cn" // const base = "http://192.168.21.3:9999" const base = "http://lanpucloud.cn" //配置请求基地址 fly.config.baseURL = base + "" fly.config.baseURL = base + "/herb" // fly.config.baseURL = base + "" const ip = uni.getStorageSync('lan_ip'); if (ip) { fly.config.baseURL = "http://" + ip + ":9999"