diff --git a/components/upload/__tests__/uploadlist.test.js b/components/upload/__tests__/uploadlist.test.js index eb2e36dce..e2e6e2d3b 100644 --- a/components/upload/__tests__/uploadlist.test.js +++ b/components/upload/__tests__/uploadlist.test.js @@ -97,7 +97,7 @@ describe('Upload List', () => { it('should be uploading when upload a file', done => { const props = { propsData: { - action: 'http://jsonplaceholder.typicode.com/posts/', + action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', customRequest: successRequest, }, listeners: { @@ -133,7 +133,7 @@ describe('Upload List', () => { it('handle error', done => { const props = { propsData: { - action: 'http://jsonplaceholder.typicode.com/posts/', + action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', customRequest: errorRequest, }, listeners: { @@ -166,7 +166,7 @@ describe('Upload List', () => { const handleChange = jest.fn(); const props = { propsData: { - action: 'http://jsonplaceholder.typicode.com/posts/', + action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', listType: 'picture', defaultFileList: fileList, beforeUpload: () => false, diff --git a/components/upload/demo/avatar.md b/components/upload/demo/avatar.md index 38ce83eb0..b40664590 100644 --- a/components/upload/demo/avatar.md +++ b/components/upload/demo/avatar.md @@ -17,7 +17,7 @@ The return value of function `beforeUpload` can be a Promise to check asynchrono listType="picture-card" class="avatar-uploader" :showUploadList="false" - action="//jsonplaceholder.typicode.com/posts/" + action="https://www.mocky.io/v2/5cc8019d300000980a055e76" :beforeUpload="beforeUpload" @change="handleChange" > diff --git a/components/upload/demo/basic.md b/components/upload/demo/basic.md index a6200463a..bdd39675d 100644 --- a/components/upload/demo/basic.md +++ b/components/upload/demo/basic.md @@ -10,7 +10,7 @@ Classic mode. File selection dialog pops up when upload button is clicked. ```html