
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
maque-request-ts
Advanced tools
封装了axios库。
请求后端时,要从sessionStorage、localStorage、Cookies 3个存储中读取Token
Token的名称在 window.tokenName 配置,如果为空,则默认为Token
请求时,携带的header头为上述的名称
在package.json中引入包
"maque-request-ts": "^1.0.1"
或使用安装命令
npm install maque-request-ts
在需要调用的地方使用
import requestWrap from "maque-request-ts";
然后调用即可
function getBeijing() {
//https://api.vvhan.com/api/60s
requestWrap({url: "/api/one"}).then(res => {
result.value = res;
})
}
返回值说明:
默认只返回后端BodyVo中的data,如果你需要整个body返回,请增加参数 fullBack:true
{url: "/api/one",fullBack:true}
如果是文件请求下载,也就是 responseType='blob' 时,也会返回整个body
该库只依赖于Vue3,Element-Plus,所以项目必须要引入Element-Plus,并在Main.ts或main.js中进行初始化
FAQs
封装了axios库。
We found that maque-request-ts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.