WebApp【公共组件库】@前端(For Git Submodule)
‘chensiAb’
2025-03-25 3b03f87a02458f719e2eb4bf112a13441b427d14
_cursor.ai/rules/type-fetchers.mdc
@@ -5,3 +5,34 @@
---
# 请求集
## 请求集空白模板
```js
/**
 * FCommon - 公用请求集
 * @author 作者
 */
import { Fetcher } from '@components/bases/Fetcher';
class FCommon extends Fetcher {
    constructor() {
        super({
            // url前缀(本地路径, 服务器路径)
            urlPrefix: ['/api/common/', '/serverPath/'],
        });
    }
    // 读取页面详情
    getPageDetail() {
        const url = this.spellURL('getPageDetail', 'page/Detail');
        const send = {};
        return this.post(url, send);
    }
}
export const $fetchCommon = new FCommon();
```