Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →tencentblueking/统一网络请求封装 (Axios)
蓝鲸双协议兼容的 Axios 封装,自动处理旧版和新版 HTTP 协议
Passed 16 of 19 test cases with the skill, and 8 of 19 without it.
and 7 more in the full report
9 fixed9 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
在蓝鲸前端工程中建立统一请求导出模块时,默认的文件存放路径与模块名称是什么?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies src/api/http.ts as the file location. | Missed | Passed |
The instructions your model reads when the skill loads.
蓝鲸体系处于 HTTP 协议升级过渡期,本封装自动兼容 旧版协议 和 新版协议。
src/api/http.ts 的实例发起data 字段// src/api/http.ts
import axios from 'axios';
import { Message } from 'bkui-vue';
const http = axios.create({ baseURL: '/api', timeout: 60000 });
http.interceptors.response.use(
(res) => {
const { data } = res;
// 旧版协议(有 code 字段)
if (data.code !== undefined) {
if (data.code !== 0) {
Message({ theme: 'error', message: data.message });
return Promise.reject(new Error(data.message));
}
return data.data;
}
return data.data ?? data;
},
(error) => {
if (error.response?.status === 401) window.location.href = '/login';
Message({ theme: 'error', message: error.message });
return Promise.reject(error);
}
);
export default http;
test cases passed, vs 8 / 19 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.