xiaozhi-esp32-server/main/manager-web/scripts
lapy a2bf0fce7d fix(web): repair duplicate-key watchers that emptied the model edit form
ModelEditDialog.vue had two dialogVisible handlers inside its watch
block (leftover from the 2026-10-11 rebase merge). The later, trivial
one ($emit only) clobbered the earlier one that also called
loadModelData()/resetForm(), so opening the model edit dialog never
fetched or populated the config. Collapsing them restores population.

Upgrading integrity-check.js to parse the export-default object and its
watch/computed/methods/data maps for duplicate keys surfaced two more
from the same merge:

- home.vue: a dead handleSearch(regex) clobbered the live handleSearch
  (which reads this.search and hits Api.agent.searchAgent). HeaderBar no
  longer emits @search, so the old regex variant was unreachable.
- KnowledgeBaseManagement.vue: a second formatFileSize shadowed the
  first; keeping upstream's (which the template's file.size uses).

integrity-check.js now catches nested duplicate option keys, not just
top-level ones. Full rebase gate green.
2026-10-13 17:46:35 +01:00
..
check-i18n.js chore(westernization): add rebase-verification tooling and docs 2026-10-13 11:35:11 +01:00
integrity-check.js fix(web): repair duplicate-key watchers that emptied the model edit form 2026-10-13 17:46:35 +01:00