Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-10-18 12:06:09 | 2 | * @Date: 2024-10-18 12:06:09 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-12-12 12:49:20 | 4 | + * @LastEditTime: 2024-12-16 10:15:10 |
| 5 | * @FilePath: /hager/src/views/news/detail.vue | 5 | * @FilePath: /hager/src/views/news/detail.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -56,8 +56,8 @@ export default { | ... | @@ -56,8 +56,8 @@ export default { |
| 56 | if (code) { | 56 | if (code) { |
| 57 | this.title = data.post_title; | 57 | this.title = data.post_title; |
| 58 | this.content = data.product_advantages; | 58 | this.content = data.product_advantages; |
| 59 | - this.keyword = data.post_keyword; | 59 | + this.keyword = data.post_keyword ? data.post_keyword : 'hager 海格电气 新闻'; |
| 60 | - this.description = data.post_description; | 60 | + this.description = data.post_description ? data.post_description : data.post_title; |
| 61 | } | 61 | } |
| 62 | }, | 62 | }, |
| 63 | methods: { | 63 | methods: { | ... | ... |
-
Please register or login to post a comment