Showing
4 changed files
with
21 additions
and
9 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-26 13:42:22 | 2 | * @Date: 2024-09-26 13:42:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-26 14:40:43 | 4 | + * @LastEditTime: 2024-10-29 14:57:15 |
| 5 | * @FilePath: /hager/src/components/common/hagerFooter.vue | 5 | * @FilePath: /hager/src/components/common/hagerFooter.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -192,7 +192,8 @@ export default { | ... | @@ -192,7 +192,8 @@ export default { |
| 192 | this.$router.push({ | 192 | this.$router.push({ |
| 193 | path: '/product/index', | 193 | path: '/product/index', |
| 194 | query: { | 194 | query: { |
| 195 | - id: item.id | 195 | + id: item.id, |
| 196 | + timestamp: Date.now() | ||
| 196 | } | 197 | } |
| 197 | }); | 198 | }); |
| 198 | }, | 199 | }, |
| ... | @@ -200,13 +201,15 @@ export default { | ... | @@ -200,13 +201,15 @@ export default { |
| 200 | this.$router.push({ | 201 | this.$router.push({ |
| 201 | path: '/solution/detail', | 202 | path: '/solution/detail', |
| 202 | query: { | 203 | query: { |
| 203 | - id: item.id | 204 | + id: item.id, |
| 205 | + timestamp: Date.now() | ||
| 204 | } | 206 | } |
| 205 | }); | 207 | }); |
| 206 | }, | 208 | }, |
| 207 | goToCorp (item) { | 209 | goToCorp (item) { |
| 208 | this.$router.push({ | 210 | this.$router.push({ |
| 209 | path: item.link, | 211 | path: item.link, |
| 212 | + timestamp: Date.now() | ||
| 210 | }) | 213 | }) |
| 211 | } | 214 | } |
| 212 | } | 215 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-26 13:42:11 | 2 | * @Date: 2024-09-26 13:42:11 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-28 18:11:48 | 4 | + * @LastEditTime: 2024-10-29 14:56:57 |
| 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue | 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -323,6 +323,7 @@ export default { | ... | @@ -323,6 +323,7 @@ export default { |
| 323 | path: '/product/index', | 323 | path: '/product/index', |
| 324 | query: { | 324 | query: { |
| 325 | id: item.id, | 325 | id: item.id, |
| 326 | + timestamp: Date.now() | ||
| 326 | } | 327 | } |
| 327 | }); | 328 | }); |
| 328 | 329 | ||
| ... | @@ -332,7 +333,8 @@ export default { | ... | @@ -332,7 +333,8 @@ export default { |
| 332 | this.$router.push({ | 333 | this.$router.push({ |
| 333 | path: '/product/detail', | 334 | path: '/product/detail', |
| 334 | query: { | 335 | query: { |
| 335 | - id: item.id | 336 | + id: item.id, |
| 337 | + timestamp: Date.now() | ||
| 336 | } | 338 | } |
| 337 | }); | 339 | }); |
| 338 | this.closeMenu(); | 340 | this.closeMenu(); | ... | ... |
| ... | @@ -320,7 +320,8 @@ export default { | ... | @@ -320,7 +320,8 @@ export default { |
| 320 | this.$router.push({ | 320 | this.$router.push({ |
| 321 | path: '/solution/detail', | 321 | path: '/solution/detail', |
| 322 | query: { | 322 | query: { |
| 323 | - id: v.id | 323 | + id: v.id, |
| 324 | + timestamp: Date.now() | ||
| 324 | } | 325 | } |
| 325 | }); | 326 | }); |
| 326 | }, | 327 | }, |
| ... | @@ -328,7 +329,8 @@ export default { | ... | @@ -328,7 +329,8 @@ export default { |
| 328 | this.$router.push({ | 329 | this.$router.push({ |
| 329 | path: '/product/index', | 330 | path: '/product/index', |
| 330 | query: { | 331 | query: { |
| 331 | - id: v.first_child_id | 332 | + id: v.first_child_id, |
| 333 | + timestamp: Date.now() | ||
| 332 | } | 334 | } |
| 333 | }); | 335 | }); |
| 334 | }, | 336 | }, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-27 16:53:09 | 2 | * @Date: 2024-09-27 16:53:09 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-29 14:48:43 | 4 | + * @LastEditTime: 2024-10-29 14:58:08 |
| 5 | * @FilePath: /hager/src/views/product/index.vue | 5 | * @FilePath: /hager/src/views/product/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -82,11 +82,16 @@ export default { | ... | @@ -82,11 +82,16 @@ export default { |
| 82 | }, | 82 | }, |
| 83 | watch: { | 83 | watch: { |
| 84 | // 监听路由参数变化时,更新输入框的值 | 84 | // 监听路由参数变化时,更新输入框的值 |
| 85 | - async '$route.query.id' (val, old) { | 85 | + '$route.query.id' (val, old) { |
| 86 | if (old !== val) { | 86 | if (old !== val) { |
| 87 | + this.is_search = false; | ||
| 87 | this.getMain(); | 88 | this.getMain(); |
| 88 | } | 89 | } |
| 89 | }, | 90 | }, |
| 91 | + '$route.query.timestamp' (val, old) { | ||
| 92 | + this.is_search = false; | ||
| 93 | + this.getMain(); | ||
| 94 | + }, | ||
| 90 | }, | 95 | }, |
| 91 | methods: { | 96 | methods: { |
| 92 | handleChange(val) { | 97 | handleChange(val) { | ... | ... |
-
Please register or login to post a comment