menu.js 467 B

12345678910111213141516171819
  1. import config from "@/config"
  2. import http from "@/utils/request"
  3. export default {
  4. list: {
  5. url: `${config.API_URL}/menu/list`,
  6. name: "-",
  7. get: async function(data={}){
  8. return await http.get(this.url, data);
  9. }
  10. },
  11. save: {
  12. url: `${config.API_URL}/menu/save`,
  13. name: "-",
  14. post: async function(data={}){
  15. return await http.post(this.url, data);
  16. }
  17. }
  18. }