config.js 549 B

1234567891011
  1. import storage from "./common/storage";
  2. export default {
  3. web_name: "智小狸",
  4. // uni_app_web_api_url: "http://10.12.22.137:8080/api", //后端统一接口路径
  5. // web_socket_url:'ws://10.12.22.137:8080/ws/',
  6. // uni_app_web_api_url: "http://192.168.3.177:8080/api",
  7. // web_socket_url:'ws://192.168.3.177:8080/ws/',
  8. uni_app_web_api_url:storage.getJson("addressIp")?'http://'+storage.getJson("addressIp")+':8080/api':'',
  9. web_socket_url:storage.getJson("addressIp")?'ws://'+storage.getJson("addressIp")+':8080/ws/':'',
  10. debug: true
  11. }