feat: Implement local question saving feature for unauthenticated users

- Added functionality to automatically save questions sent by unauthenticated users to local storage using VueUse's useStorage.
- Introduced a local history button to display the number of saved questions.
- Created a drawer component to view, delete, and clear local question records.
- Enhanced the question form with options for anonymous name and email input.
- Updated UI components and styles for better user experience.
- Added tests and documentation for the new feature.
This commit is contained in:
Megghy
2025-10-10 14:35:56 +08:00
parent c9ec427692
commit 4ad9766043
15 changed files with 941 additions and 57 deletions

View File

@@ -391,6 +391,8 @@ export interface QAInfo {
tag?: string
reviewResult?: QAReviewInfo
anonymousName?: string
anonymousEmail?: string
}
export interface LotteryUserInfo {
name: string
@@ -829,7 +831,7 @@ export interface ResponsePointHisrotyModel {
createAt: number
count: number
extra?: any
extra?: any // Use 时包含: { user, goods, isDiscontinued, remark }; Manual 时包含: { user, reason }; Danmaku 时包含: { user, danmaku }; CheckIn 时包含: { user }
}
export enum PointFrom {