chore: merge

This commit is contained in:
dap
2025-10-09 20:53:21 +08:00
29 changed files with 165 additions and 100 deletions

View File

@@ -112,11 +112,16 @@ function handleViewAll() {
message.warning('暂未开放');
}
watch(
() => preferences.app.watermark,
async (enable) => {
() => ({
enable: preferences.app.watermark,
content: preferences.app.watermarkContent,
}),
async ({ enable, content }) => {
if (enable) {
await updateWatermark({
content: `${userStore.userInfo?.username} - ${userStore.userInfo?.realName}`,
content:
content ||
`${userStore.userInfo?.username} - ${userStore.userInfo?.realName}`,
});
} else {
destroyWatermark();