chore:title改成名片

This commit is contained in:
2026-10-19 16:44:02 +08:00
parent 166450f6ce
commit 8635f9795f
13 changed files with 98 additions and 14 deletions

View File

@@ -197,11 +197,18 @@ export default {
this.cardId = decodeURIComponent(options.card_id || '');
this.isCreate = this.cardId === '';
if (this.isCreate) {
uni.setNavigationBarTitle({ title: '新建名片' });
uni.setNavigationBarTitle({ title: '名片' });
} else {
this.loadDetail();
}
},
onReady() {
// H5 uni-page-head 挂载早于路由 meta 就绪会回落默认标题 "title", onReady 再兜底一次
uni.setNavigationBarTitle({ title: '名片' });
// #ifdef H5
document.title = '名片';
// #endif
},
methods: {
loadDetail() {
if (!this.cardId) {