0.1.4 • Published 4 years ago

@wwinston/net-base v0.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

net-base

基于es6前端网络封装基础库

1、config examples for mockHttp.js const initAppConfigs = { name: 'app-auth', entry: 'http://localhost:10100/', container: '#app', activeRule: '/', }, { name: 'app-main', entry: 'http://10.168.1.107:8081/', container: '#innerApp', activeRule: '/401', }

export default {
    '/base-apps':{
        enable: true,
        type: 'get',
        data: initAppConfigs
    }
}

2、config examples for RestInterceptor @rsMock(new RestInterceptor(), mockRestResource)

data for mockRestResource export default { '/base-apps': { enable: true, data: { id: 1, name: 'headbar', label: '顶部栏应用', },{ id: 2, name: 'headbar2', label: '顶部栏应用', } },

}