This commit is contained in:
aihe 2024-04-28 18:41:13 +08:00
parent 15835eaf4d
commit b3c11a43a4
3 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@
} }
}, },
handleEditItem(item={}) { handleEditItem(item={}) {
this.goto(`address/edit?id=${item.id}`) this.goto(`address/edit?id=${item.id || ''}`)
}, },
async handleDelItem(item) { async handleDelItem(item) {
await this.confirmModal('确认要删除吗?') await this.confirmModal('确认要删除吗?')

View File

@ -224,7 +224,7 @@
async handleDealItem(item, deal = { type: '1' }) { async handleDealItem(item, deal = { type: '1' }) {
switch (deal.type){ switch (deal.type){
case 1: // 跳转 case 1: // 跳转
this.goto(`post/detail?id=${item.id}`) this.goto(`post/detail?id=${item.id || ''}`)
break; break;
case 2: // 复制订单号 case 2: // 复制订单号
this.setClipboardData('xxxxxxx') this.setClipboardData('xxxxxxx')

View File

@ -252,7 +252,7 @@
async handleDealItem(item, deal = { type: '1' }) { async handleDealItem(item, deal = { type: '1' }) {
switch (deal.type){ switch (deal.type){
case 1: // 跳转 case 1: // 跳转
goto(`post/detail?id=${item.id}`) goto(`post/detail?id=${item.id || ''}`)
break; break;
case 2: // 复制订单号 case 2: // 复制订单号
setClipboardData('xxxxxxx') setClipboardData('xxxxxxx')