From 7960eb6a90af414aa6eceda9bcf17b8f76b9f6ab Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Tue, 1 Oct 2024 10:51:06 +0800 Subject: [PATCH] init --- pages/index/index.vue | 6 +++--- pages/login/login.vue | 5 ++++- pages/orderDetails/details.vue | 2 ++ utils/request.js | 2 ++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index f830b12..a476927 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -497,7 +497,7 @@ return } - if (!this.images || this.images.length == 0) { + if (!this.images) { uni.showToast({ title: '请上传图片再完成', icon: 'none' @@ -765,8 +765,8 @@ url: '/infra/file/upload', filePath: url, }).then((res) => { - console.log('images', res.data.url); - this.images.push(res.data.url) + console.log('images', res.data); + this.images.push(res.data) }) }, diff --git a/pages/login/login.vue b/pages/login/login.vue index 318e72d..1b5768a 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -52,7 +52,7 @@