|
@@ -26,7 +26,7 @@
|
|
|
<script>
|
|
|
import copy from 'copy-to-clipboard'
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
-import { showFullScreenLoading, tryHideFullScreenLoading } from '../../utils/request-loading'
|
|
|
+import load from '@/utils/loading'
|
|
|
export default {
|
|
|
name: 'singe-file-upload',
|
|
|
props: {
|
|
@@ -74,13 +74,13 @@ export default {
|
|
|
},
|
|
|
error() {
|
|
|
this.remove()
|
|
|
- tryHideFullScreenLoading()
|
|
|
+ load.endLoading()
|
|
|
},
|
|
|
progress() {
|
|
|
- showFullScreenLoading()
|
|
|
+ load.startLoading()
|
|
|
},
|
|
|
success(res) {
|
|
|
- tryHideFullScreenLoading()
|
|
|
+ load.endLoading()
|
|
|
if (res.code == 200) {
|
|
|
this.filelist = [{
|
|
|
name: res.data.url,
|