修改默认值

This commit is contained in:
浅念
2025-07-25 17:50:04 +08:00
parent ffc194a1c1
commit 695ebbcc71
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -182,6 +182,8 @@ declare namespace Api {
/** 列表数据 */
interface CrmListData {
country_id: any
channel_id: any
data: CrmInfo[]
current: number
size: number
+3
View File
@@ -135,8 +135,11 @@
try {
// 这里调用获取品牌列表的接口
const res = await CrmService.getcustomerdetail({ id: customerId })
res.channel_id = res.channel_id==0 ? '' : res.channel_id
res.country_id = res.country_id==0 ? '' : res.country_id
customerInfo.value = res
form.value = res
} catch (error) {
console.log(error)
}