index.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * @Author: LiZhiWei
  3. * @Date: 2026-01-13 15:01:49
  4. * @LastEditors: LiZhiWei
  5. * @LastEditTime: 2026-01-15 14:14:24
  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. footerWrite: {
  15. url: import.meta.env.VITE_INDEX_URL,
  16. adminUrl: import.meta.env.VITE_ADMIN_URL,
  17. },
  18. defaultSettings: {
  19. /**
  20. * @type String
  21. * @description Application's default title
  22. */
  23. title: '绘家',
  24. /**
  25. * @type String
  26. * @description accessToken
  27. */
  28. cookieTokenName: 'wctm__',
  29. /**
  30. * @type String
  31. * @description refreshToken
  32. */
  33. cookieRefreshTokenName: 'wcRhtm__',
  34. /**
  35. * @type String
  36. * @description 当前登录企业 ID
  37. */
  38. enterpriseUserIdName: 'wcEnI__',
  39. /**
  40. * @type String
  41. * @description 当前登录uuid
  42. */
  43. uuidName: 'wcuutm__',
  44. /**
  45. * @type {boolean} true | false
  46. * @description Whether need tagsView
  47. */
  48. tagsView: true,
  49. /**
  50. * @type {boolean} true | false
  51. * @description Whether fix the header
  52. */
  53. fixedHeader: true,
  54. /**
  55. * @type {boolean} true | false
  56. * @description Whether show the logo in sidebar
  57. */
  58. sidebarLogo: true,
  59. /**
  60. * @type {string | array} 'production' | ['production', 'development']
  61. * @description Need show err logs component.
  62. * The default is only used in the production env
  63. * If you want to also use it in dev, you can pass ['production', 'development']
  64. */
  65. errorLog: ['production', 'development'],
  66. fileUrl: '/yyds/file/download/',
  67. },
  68. }
  69. export default config