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
 
133
 
134
   proxy: {
134
   proxy: {
135
     '/api': {
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
       changeOrigin: true,
138
       changeOrigin: true,
139
       // pathRewrite: { '^/server': '' },
139
       // pathRewrite: { '^/server': '' },
140
     },
140
     },

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

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