[功能] 当已提交表单的用户使用不同环境重新进入填表页面时,无法加载已填内容
Open
Nobody has claimed this yet.
enhancement
pr-welcome
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
发生了什么?
如题,当用户在不同环境(通常是不同设备或不同浏览器等不共享localStorage的环境)下访问同一表单时,对于已提交的表单,用户已填的信息会丢失
我期望当用户已填表单时,能够为用户呈现一个类似于“您已提交该表单,查看已填内容/重新(继续)填写表单” 的页面
复现步骤
- 使用微信浏览器访问问卷页面并提交
- 使用手机自带浏览器访问问卷,出现已填数据丢失的情况
您在哪些浏览器上遇到了这个问题?
Microsoft Edge
相关日志输出
补充说明
本质原因是在存储表单数据时使用了localStorage进行存储,或许可以考虑在访问时向后端做一次TryGetForm或者类似的操作
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the form page and trace how submitted data is currently saved and restored through localStorage. Then inspect the existing backend form-access path, including the suggested TryGetForm-style lookup; done means a submitted user can revisit from another browser or device and see options to view, continue, or refill the form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100