refactor:change name=> fetch.js to request.js

This commit is contained in:
Pan
2017-11-07 13:55:57 +08:00
parent 5eda0685ed
commit 61deec548c
6 changed files with 14 additions and 14 deletions

View File

@@ -105,7 +105,7 @@
<script>
/* eslint-disable */
import {effectRipple, data2blob} from './utils';
import fetch from 'utils/fetch';
import request from 'utils/request';
import langBag from './lang';
const mimes = {
'jpg': 'image/jpeg',
@@ -672,7 +672,7 @@
that.loading = 1;
that.setStep(3);
that.$emit('crop-success', createImgUrl, field, ki);
fetch({
request({
url,
method: 'post',
data: fmData