增加js版本展示

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

@ -9,6 +9,8 @@ Axios.defaults.withCredentials = true;
// keepAlive: true // keepAlive: true
// }); // });
// eslint-disable-next-line no-console
console.log("flyapps js version:"+process.env.base_env.version);
const DOMAIN = process.env.base_env.baseUrl; const DOMAIN = process.env.base_env.baseUrl;
const APIPATH = '/api/v1/fir/server'; const APIPATH = '/api/v1/fir/server';

@ -158,7 +158,7 @@ export function uploadaliyunoss(file, certinfo, app, successcallback, processcal
progress, progress,
parallel: 10, parallel: 10,
partSize: 1024 * 1024, partSize: 1024 * 1024,
timeout: 180000, timeout: 600000,
}; };
if (currentCheckpoint) { if (currentCheckpoint) {
@ -179,7 +179,7 @@ export function uploadaliyunoss(file, certinfo, app, successcallback, processcal
uploadFile('') uploadFile('')
} else { } else {
app.$message({ app.$message({
message: file.name + '上传失败,请刷新页面重试', message: file.name + ' 重试了'+retryCount+'次,还是上传失败,请刷新页面重试',
type: 'error', type: 'error',
duration: 0 duration: 0
}); });

@ -87,6 +87,7 @@ const pro_base_env = {
index_static: 'https://static.flyapps.cn/index/', index_static: 'https://static.flyapps.cn/index/',
baseShortUrl: 'https://flyapps.top', baseShortUrl: 'https://flyapps.top',
short_static: 'https://static.flyapps.top/short/', short_static: 'https://static.flyapps.top/short/',
version: '1.2.5',
}; };
const dev_base_env = { const dev_base_env = {
@ -94,6 +95,7 @@ const dev_base_env = {
baseShortUrl: 'https://app.hehelucky.cn', baseShortUrl: 'https://app.hehelucky.cn',
short_static: '/', short_static: '/',
index_static: '/', index_static: '/',
version: '1.2.5',
}; };
let base_evn = dev_base_env; let base_evn = dev_base_env;
@ -137,7 +139,7 @@ module.exports = {
config config
.plugin('define') .plugin('define')
.tap(args => { .tap(args => {
args[0]['process.env']['base_env'] = JSON.stringify({baseUrl: base_evn.baseUrl,baseShortUrl:base_evn.baseShortUrl}); args[0]['process.env']['base_env'] = JSON.stringify({baseUrl: base_evn.baseUrl,baseShortUrl:base_evn.baseShortUrl,version:base_evn.version});
return args return args
}); });

Loading…
Cancel
Save