config.ts 492 B

123456789101112131415161718192021222324252627
  1. import type { ModuleConfig } from "/@/cool";
  2. import { getRules } from "./utils";
  3. export default (): ModuleConfig => {
  4. return {
  5. options: {
  6. host: "https://service.cool-js.com/api"
  7. },
  8. toolbar: {
  9. order: 1,
  10. component: import("./components/auto-menu/btn.vue")
  11. },
  12. pages: [
  13. {
  14. path: "/helper/ai-code",
  15. meta: {
  16. label: "Ai 极速编码",
  17. keepAlive: true
  18. },
  19. component: () => import("./views/ai-code.vue")
  20. }
  21. ],
  22. onLoad() {
  23. getRules();
  24. }
  25. };
  26. };