修改打包方式去除版本控制打包,修改app文件名称根据配置文件请求地址判断
This commit is contained in:
@@ -250,6 +250,8 @@
|
||||
import { getUUID } from "@/utils";
|
||||
import OSS from "@/utils/oss-upload.js";
|
||||
import { $getCredentials } from "@/api/oss.js";
|
||||
import config from "@/config/index.js";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -402,8 +404,10 @@ export default {
|
||||
console.log(data);
|
||||
const date = new Date();
|
||||
const houzhui = "." + data.name.substr(data.name.lastIndexOf(".") + 1);
|
||||
const name = "app/" + "test-duanju" + houzhui;
|
||||
// const name = "app/" + "sy-duanju" + houzhui;
|
||||
const isTest=config.baseUrl.includes('dj-api.hnsiyao.cn')?false:true
|
||||
const appName=isTest?'test-duanju':'sy-duanju'
|
||||
const name = "app/" + appName + houzhui;
|
||||
console.log(name);
|
||||
const fileRes = await this.ossClient.partUpload(name, data.raw, (p) => {
|
||||
this.percentage = Math.floor(p * 100);
|
||||
console.log(this.percentage);
|
||||
|
||||
Reference in New Issue
Block a user