From bbd7e211973c9f50ef9a3fcb2e9b6353684a17e2 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Mon, 20 Nov 2023 18:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AA=E5=B1=8F=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/resource/SplashView.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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(); });