|
|
@@ -116,6 +116,7 @@
|
|
|
<script>
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import { upload } from "@/api/system/public";
|
|
|
+import {imageUrl} from "@/utils/ruoyi";
|
|
|
|
|
|
export default {
|
|
|
props: {
|
|
|
@@ -210,10 +211,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
/*上传成功*/
|
|
|
this.$modal.closeLoading();
|
|
|
- let imgUrl =
|
|
|
- process.env.NODE_ENV === "development"
|
|
|
- ? process.env.VUE_APP_BASE_API + res.data.url
|
|
|
- : window.origin + res.data.url;
|
|
|
+ let imgUrl = this.imageUrl(res.data.url); //拼接完整图片URL路径
|
|
|
let arr = [];
|
|
|
arr.push({ name: res.data.name, url: imgUrl });
|
|
|
if(this.type=='more'){
|
|
|
@@ -338,7 +336,7 @@ export default {
|
|
|
clearFiles(){
|
|
|
this.$refs["imageUpload"].clearFiles();
|
|
|
// this.fileList = [];
|
|
|
- // this.fileValueList = [];
|
|
|
+ // this.fileValueList = [];
|
|
|
},
|
|
|
},
|
|
|
};
|