import setFileObject from '@/plugins/lib/setFileObject' ; import envType from '@/builds/envType' ; import selfConfig from '@/builds/selfConfig' ; const fileList = require . context ( '@/service/apis' , true , /.ts$/ ) ; const config = selfConfig ; let server = 'https://aiplat.com' ; if ( config && config . server && config . server [ envType ] ) { server = config . server [ envType ] ; } const api = { server : server , ... setFileObject ( fileList , { } ) , } ; export default api ;