ソースを参照

adm:feat > 修改模型上传不显示上传人

shaun-sheep 4 年 前
コミット
a24d3939b7
2 ファイル変更7 行追加7 行削除
  1. 6 6
      config/index.js
  2. 1 1
      src/components/model/file/addFloorDialog.vue

+ 6 - 6
config/index.js

@@ -303,18 +303,18 @@ module.exports = {
       },
       '/image-service': {
         // 目标 API 地址
-        // target: 'http://60.205.177.43:8080/',
-        target: 'http://api.sagacloud.cn',
+        target: 'http://60.205.177.43:8080/',
+        // target: 'http://api.sagacloud.cn',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
         changeOrigin: false,
-        pathRewrite: {
-          "^/image-service": "/dp-auxiliary/image-service/"
-        }
         // pathRewrite: {
-        //   "^/image-service": "/image-service/"
+        //   "^/image-service": "/dp-auxiliary/image-service/"
         // }
+        pathRewrite: {
+          "^/image-service": "/image-service/"
+        }
       },
       '/modelapi': {
         // target: 'http://172.16.42.210:8082',

+ 1 - 1
src/components/model/file/addFloorDialog.vue

@@ -196,7 +196,7 @@
             ProjectId: this.projectId,
             ReplaceReason: null,
             Size: this.form.file.size,
-            UserName: this.userInfo.userName,
+            UserName: this.userInfo.username,
             UserId: this.userInfo.userId
           };
           request.modelFileUpload(data, res => {