提交 7fc574e0 编写于 作者: 郝先瑞

fix: 修复生产打包编译报错的问题

上级 c5be8a6a
......@@ -56,7 +56,7 @@ const props = defineProps({
},
});
const imgUrl = computed<string | null>({
const imgUrl = computed<string | undefined>({
get() {
return props.modelValue;
},
......@@ -79,12 +79,12 @@ async function uploadImage(options: UploadRequestOptions): Promise<any> {
/**
* 删除图片
*
* @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方法
}
}
/**
......
......@@ -4,7 +4,7 @@ import { PageQueryParam, PageResult } from "../base"
* 广告查询参数类型声明
*/
export interface AdvertQueryParam extends PageQueryParam {
name: String | undefined
title: String | undefined
}
/**
......
......@@ -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'
......@@ -32,7 +32,6 @@
v-loading="loading"
:data="brandList"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
border
>
<el-table-column type="selection" min-width="5%" />
......
......@@ -15,7 +15,7 @@
>
</el-form-item>
<el-form-item>
<el-form-item prop="title">
<el-input
v-model="queryParams.title"
placeholder="广告标题"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册