|
|
@@ -157,12 +157,24 @@ const cancelSend = (item) => {
|
|
|
}
|
|
|
|
|
|
const viewDetail = (item) => {
|
|
|
- // 这里可以接入查看详情逻辑
|
|
|
- const { href } = router.resolve({
|
|
|
- path: '/emails/detail',
|
|
|
- query: { id: item.emailId }
|
|
|
- })
|
|
|
- window.open(href, '_blank')
|
|
|
+ if(item.status == -4){
|
|
|
+ sessionStorage.setItem('aiEmailPreview', JSON.stringify({
|
|
|
+ subject: item.subject,
|
|
|
+ content: item.content,
|
|
|
+ recipient: item.recipient
|
|
|
+ }))
|
|
|
+ const { href } = router.resolve({
|
|
|
+ path: '/emails/detail',
|
|
|
+ query: { preview: '1' }
|
|
|
+ })
|
|
|
+ window.open(href, '_blank')
|
|
|
+ }else{
|
|
|
+ const { href } = router.resolve({
|
|
|
+ path: '/emails/detail',
|
|
|
+ query: { id: item.emailId }
|
|
|
+ })
|
|
|
+ window.open(href, '_blank')
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const editEmail = (item) => {
|