diff --git a/config/index.js b/config/index.js index b44dca8..3f6da70 100644 --- a/config/index.js +++ b/config/index.js @@ -32,14 +32,14 @@ } }, "/groupApi": { - target: "http://192.168.16.166:8282", //陆展 + target: "http://192.168.30.199:8282", //陆展 changeOrigin: true, //是否跨域 pathRewrite: { "^/groupApi": "" //需要rewrite重写的, } }, "/projectApi": { - target: "http://192.168.16.166:7099", //陆展 + target: "http://192.168.30.199:7099", //陆展 changeOrigin: true, //是否跨域 pathRewrite: { "^/projectApi": "" //需要rewrite重写的, @@ -87,8 +87,8 @@ }, // Various Dev Server settings - host: "localhost" , // can be overwritten by process.env.HOST - port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined + host: "192.168.30.113", // can be overwritten by process.env.HOST + port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, notifyOnErrors: true, diff --git a/config/index.js b/config/index.js index b44dca8..3f6da70 100644 --- a/config/index.js +++ b/config/index.js @@ -32,14 +32,14 @@ } }, "/groupApi": { - target: "http://192.168.16.166:8282", //陆展 + target: "http://192.168.30.199:8282", //陆展 changeOrigin: true, //是否跨域 pathRewrite: { "^/groupApi": "" //需要rewrite重写的, } }, "/projectApi": { - target: "http://192.168.16.166:7099", //陆展 + target: "http://192.168.30.199:7099", //陆展 changeOrigin: true, //是否跨域 pathRewrite: { "^/projectApi": "" //需要rewrite重写的, @@ -87,8 +87,8 @@ }, // Various Dev Server settings - host: "localhost" , // can be overwritten by process.env.HOST - port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined + host: "192.168.30.113", // can be overwritten by process.env.HOST + port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, notifyOnErrors: true, diff --git a/src/components/ConfigManager/SiteManagement.vue b/src/components/ConfigManager/SiteManagement.vue index 84641c7..0605a54 100644 --- a/src/components/ConfigManager/SiteManagement.vue +++ b/src/components/ConfigManager/SiteManagement.vue @@ -607,7 +607,7 @@ //上传头像 fileChange(file) { this.loading = true; - const isLt1M = file.size / 1024 / 1024 < 1; + const isLt1M = file.size / 1024 / 1024 < 5; if (file.raw.type != "image/jpeg" && file.raw.type != "image/png") { this.loading = false; this.$message.error("上传图片只能是JPG或PNG格式!"); @@ -615,7 +615,7 @@ } if (!isLt1M) { this.loading = false; - this.$message.error("上传图片大小不能超过 1MB!"); + this.$message.error("上传图片大小不能超过 5MB!"); return; } var formdata = new FormData(); diff --git a/config/index.js b/config/index.js index b44dca8..3f6da70 100644 --- a/config/index.js +++ b/config/index.js @@ -32,14 +32,14 @@ } }, "/groupApi": { - target: "http://192.168.16.166:8282", //陆展 + target: "http://192.168.30.199:8282", //陆展 changeOrigin: true, //是否跨域 pathRewrite: { "^/groupApi": "" //需要rewrite重写的, } }, "/projectApi": { - target: "http://192.168.16.166:7099", //陆展 + target: "http://192.168.30.199:7099", //陆展 changeOrigin: true, //是否跨域 pathRewrite: { "^/projectApi": "" //需要rewrite重写的, @@ -87,8 +87,8 @@ }, // Various Dev Server settings - host: "localhost" , // can be overwritten by process.env.HOST - port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined + host: "192.168.30.113", // can be overwritten by process.env.HOST + port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, notifyOnErrors: true, diff --git a/src/components/ConfigManager/SiteManagement.vue b/src/components/ConfigManager/SiteManagement.vue index 84641c7..0605a54 100644 --- a/src/components/ConfigManager/SiteManagement.vue +++ b/src/components/ConfigManager/SiteManagement.vue @@ -607,7 +607,7 @@ //上传头像 fileChange(file) { this.loading = true; - const isLt1M = file.size / 1024 / 1024 < 1; + const isLt1M = file.size / 1024 / 1024 < 5; if (file.raw.type != "image/jpeg" && file.raw.type != "image/png") { this.loading = false; this.$message.error("上传图片只能是JPG或PNG格式!"); @@ -615,7 +615,7 @@ } if (!isLt1M) { this.loading = false; - this.$message.error("上传图片大小不能超过 1MB!"); + this.$message.error("上传图片大小不能超过 5MB!"); return; } var formdata = new FormData(); diff --git a/src/components/Engineering/Nowfault.vue b/src/components/Engineering/Nowfault.vue index e2b4b89..367b8bf 100644 --- a/src/components/Engineering/Nowfault.vue +++ b/src/components/Engineering/Nowfault.vue @@ -1,6 +1,35 @@