登录、注册页面标题使用pages.json配置

This commit is contained in:
yangjian
2026-06-22 16:09:09 +08:00
parent 3705302fa7
commit 35bd871392
3 changed files with 8 additions and 22 deletions
+8 -2
View File
@@ -149,10 +149,16 @@
}
},
{
"path": "pages/accountLogin/accountLogin"
"path": "pages/accountLogin/accountLogin",
"style": {
"navigationBarTitleText": "用户登录"
}
},
{
"path": "pages/register/register"
"path": "pages/register/register",
"style": {
"navigationBarTitleText": "用户注册"
}
}
],
"tabBar": {
@@ -80,16 +80,6 @@
<script setup>
import { encrypt } from '@/utils/crypto.js'
/**
* 生命周期函数--监听页面显示
*/
onShow(() => {
// 头部导航标题
uni.setNavigationBarTitle({
title: '用户登录'
})
})
const principal = ref('') // 账号
const errorTips = ref(0) // 错误提示
watch(
@@ -82,16 +82,6 @@
<script setup>
import { encrypt } from '@/utils/crypto.js'
/**
* 生命周期函数--监听页面显示
*/
onShow(() => {
// 头部导航标题
uni.setNavigationBarTitle({
title: '用户注册'
})
})
const principal = ref('') // 账号
const credentials = ref('') // 密码
/**