Skip to content

fix(frontend): refresh custom page document title#3344

Merged
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
Milesians:main
Jun 21, 2026
Merged

fix(frontend): refresh custom page document title#3344
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
Milesians:main

Conversation

@Milesians

Copy link
Copy Markdown
Contributor

Summary

  • centralize route document title resolution for custom pages
  • refresh the browser title when site settings, custom menu items, admin menu items, or locale change
  • keep custom page titles using the configured menu label once settings finish loading

Verification

  • ./node_modules/.bin/vitest run src/router/tests/title.spec.ts src/router/tests/wechat-route.spec.ts
  • ./node_modules/.bin/vue-tsc --noEmit --pretty false
  • ./node_modules/.bin/eslint src/App.vue src/i18n/index.ts src/router/index.ts src/router/title.ts src/router/tests/title.spec.ts
  • git diff --check

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@Milesians

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jun 18, 2026
@Wei-Shaw Wei-Shaw merged commit febfe53 into Wei-Shaw:main Jun 21, 2026
3 of 4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants