|
@ -35,7 +35,7 @@
|
|
<script>
|
|
<script>
|
|
import { isIOS } from '@/utils/platform';
|
|
import { isIOS } from '@/utils/platform';
|
|
import fileApi from '@/api/fileApi';
|
|
import fileApi from '@/api/fileApi';
|
|
import {imgPreview} from '@/utils/imgCompress';
|
|
|
|
|
|
import {compress} from '@/utils/imgCompress';
|
|
import cryptoUtils from "@/utils/cryptoUtils";
|
|
import cryptoUtils from "@/utils/cryptoUtils";
|
|
export default {
|
|
export default {
|
|
name: "CustomUpload",
|
|
name: "CustomUpload",
|
|
@ -268,7 +268,7 @@ export default {
|
|
resolve(item.file)
|
|
resolve(item.file)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
imgPreview(item, async (rs, v) => {
|
|
|
|
|
|
compress(item, async (rs, v) => {
|
|
if(rs!=1){
|
|
if(rs!=1){
|
|
resolve(item.file)
|
|
resolve(item.file)
|
|
} else {
|
|
} else {
|