config.uts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. uploadURL: string;
  19. getImgURL: string;
  20. }
  21. export const globalConfig = {
  22. // baseUrl: 'https://vue.ruoyi.vip/prod-api',
  23. baseUrl: 'http://localhost:8080',
  24. // 应用信息
  25. appInfo: {
  26. // 应用名称
  27. name: "ruoyi-app",
  28. // 应用版本
  29. version: "1.1.0",
  30. // 应用logo
  31. logo: "/static/newLogo.png",
  32. // 官方网站
  33. site_url: "http://ruoyi.vip",
  34. // 政策协议
  35. agreements: [{
  36. title: "隐私政策",
  37. url: "https://ruoyi.vip/protocol.html"
  38. },
  39. {
  40. title: "用户服务协议",
  41. url: "https://ruoyi.vip/protocol.html"
  42. }
  43. ]
  44. },
  45. // host: "http://192.168.43.62:4523/m1/7190626-6915798-default",
  46. host: "http://10.122.15.8",
  47. tokenURL: '/paas/RestService/d800.paas.app.LoginImpl/caLogin?username=',
  48. downloadURL: '/qm/RestService/d800.qm.QmImpl/loadQmImagetask?prodcode=',
  49. getImgURL: 'http://10.122.15.8/qm/Rest/download?fileid=',
  50. // getImgURL: 'http://192.168.43.62:8080/qm/Rest/download?fileid=',
  51. uploadURL: 'http://10.122.15.8/qm/Rest/upload'
  52. // uploadURL: 'http://192.168.43.62:8080/qm/Rest/upload'
  53. } as GlobalConfig;