diff --git a/src/views/resource/SplashView.vue b/src/views/resource/SplashView.vue index 0d29852..0365645 100644 --- a/src/views/resource/SplashView.vue +++ b/src/views/resource/SplashView.vue @@ -180,13 +180,11 @@ export default { console.log(file); if (file && file.length > 0) { showLoading(); - $('#urlUploadBtn').click(function () { - uploadFile('urlFile').then(res => { - if (res.path) { - $this.resource.url = res.path; - $('#urlUploadInfo').html('上传成功'); - } - }); + uploadFile('urlFile').then(res => { + if (res.path) { + $this.resource.url = res.path; + $('#urlUploadInfo').html('上传成功'); + } }).finally(() => { hideLoading(); });