File tree 1 file changed +2
-2
lines changed
src/content/docs/zh-cn/guides
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ const result = Astro.getActionResult(actions.newsletter);
500
500
const inputErrors = isInputError(result?.error) ? result.error.fields : {};
501
501
---
502
502
503
- <form method="POST" action={'/confirmation' + actions.newsletter}>
503
+ <form method="POST" action={actions.newsletter}>
504
504
<label>
505
505
E-mail
506
506
<input required type="email" name="email" aria-describedby="error" />
@@ -701,7 +701,7 @@ import { actions } from 'astro:actions';
701
701
702
702
const searchQuery = Astro.url.searchParams.get('search');
703
703
if (searchQuery) {
704
- const { data, error } = Astro.callAction(actions.findProduct, { query: searchQuery });
704
+ const { data, error } = await Astro.callAction(actions.findProduct, { query: searchQuery });
705
705
// 处理结果
706
706
}
707
707
---
You can’t perform that action at this time.
0 commit comments