index.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * @Author: LiZhiWei
  3. * @Date: 2026-01-13 15:01:49
  4. * @LastEditors: LiZhiWei
  5. * @LastEditTime: 2026-01-15 17:50:20
  6. * @Description:
  7. */
  8. import type { Config } from '~/types/config'
  9. export const appName = '海南绘家科技有限公司'
  10. export const appDescription = '海南绘家科技有限公司'
  11. export const apiBase = import.meta.env.VITE_API_URL
  12. const config: Config = {
  13. websiteTitle: appName,
  14. defaultSettings: {
  15. /**
  16. * @type String
  17. * @description Application's default title
  18. */
  19. title: '绘家',
  20. /**
  21. * @type String
  22. * @description accessToken
  23. */
  24. cookieTokenName: 'wctm__',
  25. /**
  26. * @type String
  27. * @description refreshToken
  28. */
  29. cookieRefreshTokenName: 'wcRhtm__',
  30. /**
  31. * @type String
  32. * @description 当前登录企业 ID
  33. */
  34. enterpriseUserIdName: 'wcEnI__',
  35. /**
  36. * @type String
  37. * @description 当前登录uuid
  38. */
  39. uuidName: 'wcuutm__',
  40. /**
  41. * @type {boolean} true | false
  42. * @description Whether need tagsView
  43. */
  44. tagsView: true,
  45. /**
  46. * @type {boolean} true | false
  47. * @description Whether fix the header
  48. */
  49. fixedHeader: true,
  50. /**
  51. * @type {boolean} true | false
  52. * @description Whether show the logo in sidebar
  53. */
  54. sidebarLogo: true,
  55. /**
  56. * @type {string | array} 'production' | ['production', 'development']
  57. * @description Need show err logs component.
  58. * The default is only used in the production env
  59. * If you want to also use it in dev, you can pass ['production', 'development']
  60. */
  61. errorLog: ['production', 'development'],
  62. fileUrl: '/yyds/file/download/',
  63. },
  64. }
  65. export default config