welcome.ts 694 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * @Author:
  3. * @Date: 2023-09-27 14:33:29
  4. * @LastEditors: guicheng 1625811865@qq.com
  5. * @LastEditTime: 2025-02-11 14:56:07
  6. * @Description: kxs files
  7. * @filePath:
  8. */
  9. // 根据角色动态生成路由
  10. import { MockMethod } from "vite-plugin-mock";
  11. export default [
  12. {
  13. url: "/list",
  14. method: "get",
  15. response: () => {
  16. return {
  17. status: "1",
  18. message: "",
  19. data: [
  20. { content: "一一一一一一一一", date: "2024/01/01 00:00:15" },
  21. { content: "二二二二二二二二", date: "2024/01/02 10:30:57" },
  22. { content: "三三三三三三三三", date: "2024/01/03 11:08:29" }
  23. ]
  24. };
  25. }
  26. }
  27. ] as MockMethod[];