fix: 修复生产打包编译报错的问题
This commit is contained in:
@@ -56,7 +56,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const imgUrl = computed<string | null>({
|
const imgUrl = computed<string | undefined>({
|
||||||
get() {
|
get() {
|
||||||
return props.modelValue;
|
return props.modelValue;
|
||||||
},
|
},
|
||||||
@@ -79,12 +79,12 @@ async function uploadImage(options: UploadRequestOptions): Promise<any> {
|
|||||||
/**
|
/**
|
||||||
* 删除图片
|
* 删除图片
|
||||||
*
|
*
|
||||||
* @param file
|
* @param fileUrl
|
||||||
*/
|
*/
|
||||||
function handleRemove(file: UploadFile, fileList: UploadFile[]) {
|
function handleRemove(fileUrl?: string) {
|
||||||
if (file) {
|
if (fileUrl) {
|
||||||
deleteFile(file.url);
|
deleteFile(fileUrl);
|
||||||
imgUrl.value = null; // 这里会触发imgUrl的computed的set方法
|
imgUrl.value = undefined; // 这里会触发imgUrl的computed的set方法
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
2
src/types/api/sms/advert.d.ts
vendored
2
src/types/api/sms/advert.d.ts
vendored
@@ -4,7 +4,7 @@ import { PageQueryParam, PageResult } from "../base"
|
|||||||
* 广告查询参数类型声明
|
* 广告查询参数类型声明
|
||||||
*/
|
*/
|
||||||
export interface AdvertQueryParam extends PageQueryParam {
|
export interface AdvertQueryParam extends PageQueryParam {
|
||||||
name: String | undefined
|
title: String | undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
3
src/types/index.d.ts
vendored
3
src/types/index.d.ts
vendored
@@ -10,12 +10,13 @@ export * from './api/system/client'
|
|||||||
|
|
||||||
|
|
||||||
export * from './api/pms/goods'
|
export * from './api/pms/goods'
|
||||||
export * from './api/pms/goods'
|
export * from './api/pms/brand'
|
||||||
|
|
||||||
export * from './api/sms/advert'
|
export * from './api/sms/advert'
|
||||||
|
|
||||||
export * from './api/oms/order'
|
export * from './api/oms/order'
|
||||||
|
|
||||||
|
export * from './api/ums/member'
|
||||||
|
|
||||||
export * from './common'
|
export * from './common'
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="brandList"
|
:data="brandList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
@row-click="handleRowClick"
|
|
||||||
border
|
border
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" min-width="5%" />
|
<el-table-column type="selection" min-width="5%" />
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item prop="title">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.title"
|
v-model="queryParams.title"
|
||||||
placeholder="广告标题"
|
placeholder="广告标题"
|
||||||
|
|||||||
Reference in New Issue
Block a user