|
@@ -43,7 +43,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getToken } from "@/utils/auth";
|
|
|
+import {getToken} from "@/utils/auth";
|
|
|
|
|
|
export default {
|
|
|
props: {
|
|
@@ -95,9 +95,9 @@ export default {
|
|
|
if (typeof item === "string") {
|
|
|
// 不带有 http 的路径, 才拼接 baseUrl.
|
|
|
if (item.indexOf("http") === -1) {
|
|
|
- item = { name: this.baseUrl + item, url: this.baseUrl + item };
|
|
|
+ item = {name: this.baseUrl + item, url: this.baseUrl + item};
|
|
|
} else {
|
|
|
- item = { name: item, url: item };
|
|
|
+ item = {name: item, url: item};
|
|
|
}
|
|
|
}
|
|
|
return item;
|
|
@@ -128,7 +128,7 @@ export default {
|
|
|
},
|
|
|
// 上传成功回调
|
|
|
handleUploadSuccess(res) {
|
|
|
- this.uploadList.push({ name: res.data.fileName, url: res.data.fileUrl });
|
|
|
+ this.uploadList.push({name: res.data.fileName, url: res.data.fileUrl});
|
|
|
if (this.uploadList.length === this.number) {
|
|
|
this.fileList = this.fileList.concat(this.uploadList);
|
|
|
this.uploadList = [];
|