babel-plugin-transform-apis

0.0.2 • Public • Published

解决qap apiList冗余问题

this.request({
    api: 'itemCopyLogin'
}, ()=> {
    this.nav('qap:///itemCopy.js', '宝贝复制', true);
})

转成

this.request({
    api: 'itemCopyLogin',
    apio: {
        server: 'rc',
        url: 'https://mwdsp.superboss.cc/itemcopy/login.rjson',
        params: {
            method: 'GET',
            mode: 'same-origin',
            dataType: 'json',
            apiName: 'itemCopyLogin',
            api_name: 'itemCopyLogin'
        }
    }
}, () => {
    _this.nav('qap:///itemCopy.js', '宝贝复制', true);
});

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-transform-apis

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • xiaoqiang730730