内容样式
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script type="text/javascript">
|
||||
// const baseUrl = "http://192.168.110.100:9200/pb"//张川川后端
|
||||
// const baseUrl = "http://192.168.110.100:9200/pb"; //张川川后端
|
||||
// const baseUrl = 'http://59.110.212.44:9100/pb'
|
||||
const baseUrl = 'https://testapi.nuttyreading.com'
|
||||
// function commonFun() {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -386,7 +386,7 @@ export default {
|
||||
console.log("🚀 ~ .then ~ progress888:", progress);
|
||||
return progress;
|
||||
},
|
||||
handleRequest(option) {
|
||||
handleRequest(option) {
|
||||
var that = this;
|
||||
const { onProgress, onSuccess, onError } = option;
|
||||
this.progressPercent = 0;
|
||||
@@ -400,7 +400,7 @@ export default {
|
||||
|
||||
this.isUpload = true;
|
||||
|
||||
axios
|
||||
axios
|
||||
.post(this.baseUrl + "/oss/fileoss/uploadFileSchedule", formdata)
|
||||
.then((res) => {
|
||||
console.log("🚀 ~ this.$axios.post ~ res111:", res);
|
||||
@@ -415,11 +415,10 @@ export default {
|
||||
that.fileList[that.fileList.length - 1].ststus = "error";
|
||||
onError();
|
||||
}
|
||||
|
||||
});
|
||||
// var prom = new Promise((resolve, reject) => {});
|
||||
// prom.abort = () => {};
|
||||
// return prom;
|
||||
});
|
||||
// var prom = new Promise((resolve, reject) => {});
|
||||
// prom.abort = () => {};
|
||||
// return prom;
|
||||
},
|
||||
|
||||
// 文件上传时的钩子函数,获取上传进度
|
||||
@@ -580,6 +579,10 @@ export default {
|
||||
addOreEditCate() {
|
||||
this.$refs["addFormRef"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.isUpload) {
|
||||
this.$message.error("文件正在上传中,请稍后...");
|
||||
return false;
|
||||
}
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("/book/medicaldes/saveOrUpdateLight"),
|
||||
method: "post",
|
||||
|
||||
Reference in New Issue
Block a user