优化上传失败

dependabot/npm_and_yarn/fir_admin/tmpl-1.0.5
youngS 3 years ago
parent 42cb1bfc88
commit dd218fe745
  1. 11
      fir_client/src/utils/index.js
  2. 6
      fir_client/vue.config.js

@ -137,7 +137,16 @@ export function uploadaliyunoss(file, certinfo, app, successcallback, processcal
let retryCount = 0;
let retryCountMax = 5;
let partSize= 1024 * 1024;
let f_count = Math.floor(file.size/partSize);
if(f_count > 200){
f_count=Math.floor(f_count*0.3)
}else {
f_count = 60
}
let retryCountMax = 5 + f_count;
let currentCheckpoint;
const progress = async function progress(p, checkpoint) {
currentCheckpoint = checkpoint;

@ -82,12 +82,14 @@ if (page) {
}
}
const version='1.2.6';
const pro_base_env = {
baseUrl: 'https://flyapps.cn',
index_static: 'https://static.flyapps.cn/index/',
baseShortUrl: 'https://flyapps.top',
short_static: 'https://static.flyapps.top/short/',
version: '1.2.5',
version: version,
};
const dev_base_env = {
@ -95,7 +97,7 @@ const dev_base_env = {
baseShortUrl: 'https://app.hehelucky.cn',
short_static: '/',
index_static: '/',
version: '1.2.5',
version: version,
};
let base_evn = dev_base_env;

Loading…
Cancel
Save