notice.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { MockMethod } from 'vite-plugin-mock'
  2. const List = [
  3. {
  4. email: '@email',
  5. image: 'https://i.gtimg.cn/club/item/face/img/8/15918_100.gif',
  6. notice: 'github开源地址:<a target="_blank" href="https://github.com/chuzhixin/vue-admin-better">点我</a>',
  7. },
  8. {
  9. email: '@email',
  10. image: 'https://i.gtimg.cn/club/item/face/img/0/15640_100.gif',
  11. notice: 'Admin Pro:<a target="_blank" href="https://vue-admin-beautiful.com/admin-pro">点我</a>',
  12. },
  13. {
  14. email: '@email',
  15. image: 'https://i.gtimg.cn/club/item/face/img/9/15919_100.gif',
  16. notice: 'Admin Plus:<a target="_blank" href="https://vue-admin-beautiful.com/admin-plus">点我</a>',
  17. },
  18. {
  19. email: '@email',
  20. image: 'https://i.gtimg.cn/club/item/face/img/8/15918_100.gif',
  21. notice: 'Shop Vite:<a target="_blank" href="https://vue-admin-beautiful.com/shop-vite">点我</a>',
  22. },
  23. ]
  24. export default [
  25. {
  26. url: '/notice/getList',
  27. method: 'get',
  28. response: () => {
  29. return {
  30. code: 200,
  31. msg: 'success',
  32. data: { list: List, total: List.length },
  33. }
  34. },
  35. },
  36. ] as MockMethod[]