|
|
|
@@ -154,8 +154,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import axios from "axios"; |
|
|
|
|
|
|
|
import { postImgDesensitization } from "~/apis/modules/desensitization"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@@ -215,14 +214,7 @@ export default { |
|
|
|
let fd = new FormData(); |
|
|
|
fd.append("file", this.file.raw); |
|
|
|
this.tranformImageLoading = true; |
|
|
|
axios({ |
|
|
|
method: "POST", |
|
|
|
url: "/extension/tuomin/upload", |
|
|
|
headers: { Accept: "image/png" }, |
|
|
|
responseType: "blob", |
|
|
|
params: { mode: this.radio }, |
|
|
|
data: fd, |
|
|
|
}) |
|
|
|
postImgDesensitization({ mode: this.radio }, fd) |
|
|
|
.then((res) => { |
|
|
|
const objectURL = URL.createObjectURL(res.data); |
|
|
|
this.resultImgSrc = objectURL; |
|
|
|
|