config.uts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. export type Agreements={
  2. title: string;
  3. url: string;
  4. }
  5. export type AppInfo ={
  6. name: string;
  7. version: string;
  8. logo: string;
  9. site_url: string;
  10. agreements: Agreements[];
  11. }
  12. export type GlobalConfig= {
  13. baseUrl: string;
  14. appInfo: AppInfo;
  15. host: string;
  16. tokenURL: string;
  17. downloadURL: string;
  18. downloadTaskURL: string;
  19. uploadURL: string;
  20. getImgURL: string;
  21. }
  22. export const globalConfig = {
  23. // baseUrl: 'https://vue.ruoyi.vip/prod-api',
  24. baseUrl: 'http://localhost:8080',
  25. // 应用信息
  26. appInfo: {
  27. // 应用名称
  28. name: "ruoyi-app",
  29. // 应用版本
  30. version: "1.1.0",
  31. // 应用logo
  32. logo: "/static/newLogo.png",
  33. // 官方网站
  34. site_url: "http://ruoyi.vip",
  35. // 政策协议
  36. agreements: [{
  37. title: "隐私政策",
  38. url: "https://ruoyi.vip/protocol.html"
  39. },
  40. {
  41. title: "用户服务协议",
  42. url: "https://ruoyi.vip/protocol.html"
  43. }
  44. ]
  45. },
  46. host: "http://192.168.5.149:4523/m1/7190626-6915798-default",
  47. // host: "http://10.122.15.8",
  48. tokenURL: '/paas/RestService/d800.paas.app.LoginImpl/caLogin?username=',
  49. downloadURL: '/qm/RestService/d800.qm.QmImpl/loadQmImagetask?prodcode=',
  50. downloadTaskURL: '/qm/RestService/d800.qm.QmImpl/loadQmLkCheckinfo?gxpk=',
  51. // getImgURL: 'http://10.122.15.8/qm/Rest/download?fileid=',
  52. getImgURL: 'http://192.168.5.149:8080/qm/Rest/download?fileid=',
  53. // uploadURL: 'http://10.122.15.8/qm/Rest/upload'
  54. uploadURL: 'http://192.168.5.149:8080/qm/Rest/upload'
  55. } as GlobalConfig;