import utils from 'el-business-utils' import { v4 as uuidv4 } from 'uuid' export default function (http) { return { createCaptcha() { const uuid = uuidv4() const config = process.env.config return { imageSrc: utils.joinPath( config.httpBaseUri, `flower/api/pub/captcha/${uuid}` ), captchaCodeId: uuid, } }, getAreaJson(){ return http.request('flower/api/pub/china/area/json') } } }