admin.config.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. export default {
  2. login: {
  3. url: '/uni_modules/uni-id-pages/pages/login/login-withpwd' // 登录页面路径
  4. },
  5. index: {
  6. url: '/pages/index/index' // 登录后跳转的第一个页面
  7. },
  8. error: {
  9. url: '/pages/error/404' // 404 Not Found 错误页面路径
  10. },
  11. navBar: { // 顶部导航
  12. logo: '/static/logo.png', // 左侧 Logo
  13. langs: [{
  14. text: '中文简体',
  15. lang: 'zh-Hans'
  16. }, {
  17. text: '中文繁體',
  18. lang: 'zh-Hant'
  19. }, {
  20. text: 'English',
  21. lang: 'en'
  22. }],
  23. themes: [{
  24. text: '默认',
  25. value: 'default'
  26. }, {
  27. text: '绿柔',
  28. value: 'green'
  29. }],
  30. debug: {
  31. enable: process.env.NODE_ENV !== 'production', //是否显示错误信息
  32. engine: [{ // 搜索引擎配置(每条错误信息后,会自动生成搜索链接,点击后跳转至搜索引擎)
  33. name: '百度',
  34. url: 'https://www.baidu.com/baidu?wd=ERR_MSG'
  35. }, {
  36. name: '谷歌',
  37. url: 'https://www.google.com/search?q=ERR_MSG'
  38. }]
  39. }
  40. },
  41. sideBar: { // 左侧菜单
  42. // 配置静态菜单列表(放置在用户被授权的菜单列表下边)
  43. staticMenu: [{
  44. menu_id: "demo",
  45. text: '静态功能演示',
  46. icon: 'admin-icons-kaifashili',
  47. url: "",
  48. children: [{
  49. menu_id: "icons",
  50. text: '图标',
  51. icon: 'admin-icons-icon',
  52. value: '/pages/demo/icons/icons',
  53. }, {
  54. menu_id: "table",
  55. text: '表格',
  56. icon: 'admin-icons-table',
  57. value: '/pages/demo/table/table',
  58. }]
  59. }, {
  60. menu_id: "admim-doc-pulgin",
  61. text: '文档与插件',
  62. icon: 'admin-icons-eco',
  63. url: "",
  64. children: [{
  65. menu_id: "admin-doc",
  66. icon: 'admin-icons-doc',
  67. text: 'uni-admin 框架文档',
  68. value: 'https://uniapp.dcloud.net.cn/uniCloud/admin'
  69. }, {
  70. menu_id: "stat-doc",
  71. icon: 'admin-icons-help',
  72. text: 'uni 统计教程',
  73. value: 'https://uniapp.dcloud.net.cn/uni-stat-v2.html'
  74. }, {
  75. menu_id: "admin-pulgin",
  76. icon: 'admin-icons-pulgin',
  77. text: 'uni-admin 插件',
  78. value: 'https://ext.dcloud.net.cn/?cat1=7&cat2=74'
  79. }]
  80. }]
  81. },
  82. uniStat: {
  83. }
  84. }