index.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import type { Config } from '~/types/config'
  2. export const appName = 'Nuxt 4 Template'
  3. export const appDescription =
  4. 'Nuxt 4 Template 是一个基于 Nuxt 4 的模板项目,用于快速搭建 Nuxt 4 项目。'
  5. export const apiBase = import.meta.env.VITE_API_URL
  6. const config: Config = {
  7. websiteTitle: appName,
  8. footerWrite: {
  9. url: import.meta.env.VITE_INDEX_URL,
  10. adminUrl: import.meta.env.VITE_ADMIN_URL,
  11. },
  12. defaultSettings: {
  13. /**
  14. * @type String
  15. * @description Application's default title
  16. */
  17. title: '绘家',
  18. /**
  19. * @type String
  20. * @description accessToken
  21. */
  22. cookieTokenName: 'wctm__',
  23. /**
  24. * @type String
  25. * @description refreshToken
  26. */
  27. cookieRefreshTokenName: 'wcRhtm__',
  28. /**
  29. * @type String
  30. * @description 当前登录企业 ID
  31. */
  32. enterpriseUserIdName: 'wcEnI__',
  33. /**
  34. * @type String
  35. * @description 当前登录uuid
  36. */
  37. uuidName: 'wcuutm__',
  38. /**
  39. * @type {boolean} true | false
  40. * @description Whether need tagsView
  41. */
  42. tagsView: true,
  43. /**
  44. * @type {boolean} true | false
  45. * @description Whether fix the header
  46. */
  47. fixedHeader: true,
  48. /**
  49. * @type {boolean} true | false
  50. * @description Whether show the logo in sidebar
  51. */
  52. sidebarLogo: true,
  53. /**
  54. * @type {string | array} 'production' | ['production', 'development']
  55. * @description Need show err logs component.
  56. * The default is only used in the production env
  57. * If you want to also use it in dev, you can pass ['production', 'development']
  58. */
  59. errorLog: ['production', 'development'],
  60. fileUrl: '/yyds/file/download/',
  61. },
  62. }
  63. export default config