Browse Source

2022.4.21

山水共长天一色 3 years ago
parent
commit
8d27a7882a

+ 9 - 9
fhKeeper/formulahousekeeper/timesheet/config/index.js

@@ -2,19 +2,19 @@ var path = require('path')
 
 //  var ip = '127.0.0.1'
 // var ip = '192.168.2.20'
-var ip = '192.168.2.32'
+// var ip = '192.168.2.32'
 // var ip = '47.100.37.243' 
 
 // var os = require('os'), ip = '', ifaces = os.networkInterfaces() // 获取本机ip
 
-// for (var i in ifaces) {
-//     for (var j in ifaces[i]) {
-//         var val = ifaces[i][j]
-//         if (val.family === 'IPv4' && val.address !== '127.0.0.1') {
-//             ip = val.address
-//         }
-//     } 
-// }
+for (var i in ifaces) {
+    for (var j in ifaces[i]) {
+        var val = ifaces[i][j]
+        if (val.family === 'IPv4' && val.address !== '127.0.0.1') {
+            ip = val.address
+        }
+    } 
+}
 
 module.exports = {
   build: {

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/projectInside.vue

@@ -1122,7 +1122,7 @@ import delete$ from 'dingtalk-jsapi/api/biz/cspace/delete';
                 let files = new FormData()
                 files.append("projectId",this.curProjectId);
                 files.append("taskId", this.addForm.id);
-                files.append("files", item.file);
+                files.append("file", item.file);
                 this.http.uploadFile('/task-files/uploadFile',files,
                 res => {
                     if(res.code == 'ok'){