-
Notifications
You must be signed in to change notification settings - Fork 7.7k
fix: watermark settings in the preferences modified accidentally #5823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe pull request updates the watermark content in several layout files to combine the username with the user’s real name. In addition, it removes updatePreferences calls from the watermark hook and introduces an onBeforeMount lifecycle hook in one layout to clear the watermark based on preference settings. These changes adjust the displayed user information and modify the watermark update control flow without altering the overall application structure. Changes
Sequence Diagram(s)sequenceDiagram
participant Component as Playground Component
participant Pref as Preferences
participant Watermark as Watermark Service
Component->>Pref: Check if watermark enabled
alt Watermark enabled
Component->>Watermark: destroyWatermark()
end
Component->>Component: Generate watermark string (${username} - ${realName})
Component->>Watermark: updateWatermark(updated string)
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
修复水印偏好设置被意外修改的问题。
fixed: #5817
Type of change
Please delete options that are not relevant.
pnpm-lock.yaml
unless you introduce a new test example.Checklist
pnpm run docs:dev
command.pnpm test
.feat:
,fix:
,perf:
,docs:
, orchore:
.Summary by CodeRabbit
New Features
Chores