Commit 6cf0bd67 authored by 罗超's avatar 罗超

修改

parent 34937b6c
...@@ -58,6 +58,7 @@ export default { ...@@ -58,6 +58,7 @@ export default {
let javaUrl = 'http://192.168.2.65:8018'; let javaUrl = 'http://192.168.2.65:8018';
domainUrl = "http://192.168.1.27:8200"; domainUrl = "http://192.168.1.27:8200";
let vtUploadUrl = "http://192.168.1.214:8120"; let vtUploadUrl = "http://192.168.1.214:8120";
let vtViewUrl = "http://192.168.1.214:8130"; let vtViewUrl = "http://192.168.1.214:8130";
...@@ -177,7 +178,8 @@ export default { ...@@ -177,7 +178,8 @@ export default {
Vue.prototype.UploadFileToTencent = function (path, fileObj, callback) { Vue.prototype.UploadFileToTencent = function (path, fileObj, callback) {
// debugger; // debugger;
var upInfo = JSON.parse(localStorage.uploadInfo); var upInfo = JSON.parse(localStorage.uploadInfo);
if (fileObj.type == "image/png" || fileObj.type == "image/jpeg") { let maxSize=500*1024
if ((fileObj.type == "image/png" || fileObj.type == "image/jpeg") && fileObj.size>maxSize) {
let that = this let that = this
lrz(fileObj, { lrz(fileObj, {
width: 750, width: 750,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment