From 7fc574e00dad2492a73a0419fda4c44c2c5a922b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Mon, 14 Mar 2022 00:24:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E6=89=93=E5=8C=85=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Upload/SingleUpload.vue | 12 ++++++------ src/types/api/sms/advert.d.ts | 2 +- src/types/index.d.ts | 3 ++- src/views/pms/brand/index.vue | 1 - src/views/sms/advert/index.vue | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/Upload/SingleUpload.vue b/src/components/Upload/SingleUpload.vue index 43b0def4..9a81fb5b 100644 --- a/src/components/Upload/SingleUpload.vue +++ b/src/components/Upload/SingleUpload.vue @@ -56,7 +56,7 @@ const props = defineProps({ }, }); -const imgUrl = computed({ +const imgUrl = computed({ get() { return props.modelValue; }, @@ -79,12 +79,12 @@ async function uploadImage(options: UploadRequestOptions): Promise { /** * 删除图片 * - * @param file + * @param fileUrl */ -function handleRemove(file: UploadFile, fileList: UploadFile[]) { - if (file) { - deleteFile(file.url); - imgUrl.value = null; // 这里会触发imgUrl的computed的set方法 +function handleRemove(fileUrl?: string) { + if (fileUrl) { + deleteFile(fileUrl); + imgUrl.value = undefined; // 这里会触发imgUrl的computed的set方法 } } /** diff --git a/src/types/api/sms/advert.d.ts b/src/types/api/sms/advert.d.ts index 6120f0c8..1b23eb45 100644 --- a/src/types/api/sms/advert.d.ts +++ b/src/types/api/sms/advert.d.ts @@ -4,7 +4,7 @@ import { PageQueryParam, PageResult } from "../base" * 广告查询参数类型声明 */ export interface AdvertQueryParam extends PageQueryParam { - name: String | undefined + title: String | undefined } /** diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 6df48ee2..d43c72b9 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -10,12 +10,13 @@ export * from './api/system/client' export * from './api/pms/goods' -export * from './api/pms/goods' +export * from './api/pms/brand' export * from './api/sms/advert' export * from './api/oms/order' +export * from './api/ums/member' export * from './common' diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue index 4189cc00..1538b73c 100644 --- a/src/views/pms/brand/index.vue +++ b/src/views/pms/brand/index.vue @@ -32,7 +32,6 @@ v-loading="loading" :data="brandList" @selection-change="handleSelectionChange" - @row-click="handleRowClick" border > diff --git a/src/views/sms/advert/index.vue b/src/views/sms/advert/index.vue index 7c374ad6..4289856e 100644 --- a/src/views/sms/advert/index.vue +++ b/src/views/sms/advert/index.vue @@ -15,7 +15,7 @@ > - +