menu.js 652 B

123456789101112131415161718192021222324252627
  1. import { httpApi } from '../request/httpApi'
  2. import website from "@/config/index";
  3. export default {
  4. async getRoutes() {
  5. return httpApi({
  6. url: '/api/blade-system/menu/routes',
  7. method: 'get',
  8. params: {
  9. sysType: website.clientId,
  10. },
  11. })
  12. },
  13. async getButtons() {
  14. return httpApi({
  15. url: '/api/blade-system/menu/buttons',
  16. method: 'get',
  17. })
  18. },
  19. async getAazyList(form) {
  20. return httpApi({
  21. url: '/api/blade-system/menu/lazy-list',
  22. method: 'get',
  23. params: form,
  24. })
  25. },
  26. }