xujing 4 年前
父节点
当前提交
b0db904d5c
共有 2 个文件被更改,包括 3 次插入4 次删除
  1. 2
    2
      config/config.js
  2. 1
    2
      src/components/uploadImage/Upload.jsx

+ 2
- 2
config/config.js 查看文件

@@ -133,8 +133,8 @@ export default {
133 133
 
134 134
   proxy: {
135 135
     '/api': {
136
-      // target: 'https://dev.fangdeal.cn',
137
-      target: 'http://192.168.0.153:8080/',
136
+      target: 'https://dev.fangdeal.cn',
137
+      // target: 'http://192.168.0.153:8080/',
138 138
       changeOrigin: true,
139 139
       // pathRewrite: { '^/server': '' },
140 140
     },

+ 1
- 2
src/components/uploadImage/Upload.jsx 查看文件

@@ -11,7 +11,7 @@ class ImageListUpload extends React.Component {
11 11
   state = {
12 12
     previewVisible: false,
13 13
     previewImage: '',
14
-    loadding: false,
14
+    loading: false,
15 15
   };
16 16
 
17 17
   getFileList = () => {
@@ -59,7 +59,6 @@ class ImageListUpload extends React.Component {
59 59
       <div className="clearfix">
60 60
         <Upload
61 61
           listType="picture-card"
62
-          multiple={true}
63 62
           fileList={fileList}
64 63
           onPreview={this.handlePreview}
65 64
           onChange={this.handleChange}