0.0.2 • Published 6 years ago

babel-plugin-transform-apis v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

解决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);
});