Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-06 12:54:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d429fab1343fc46862ebb80f27122d40f4757035
d429fab1
1 parent
f4668189
fix(导航逻辑): 调整导航条件判断顺序,优先检查用户资料
将导航逻辑中的条件判断顺序进行调整,优先检查用户资料是否存在,再检查创建家庭页面的权限
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
src/pages/Welcome/index.vue
src/pages/Welcome/index.vue
View file @
d429fab
<!--
* @Date: 2025-08-27 17:43:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-06 12:
49:17
* @LastEditTime: 2025-09-06 12:
53:51
* @FilePath: /lls_program/src/pages/Welcome/index.vue
* @Description: 文件描述
-->
...
...
@@ -182,14 +182,14 @@ useDidShow(async () => {
});
const handleNavigate = (url) => {
if (url === '/pages/CreateFamily/index') {
if (!hasProfile.value) {
// 显示个人信息收集说明弹窗
pendingNavigateUrl.value = '/pages/AddProfile/index';
showPrivacyDialog.value = true;
return;
}
if (!hasProfile.value) {
// 显示个人信息收集说明弹窗
pendingNavigateUrl.value = '/pages/AddProfile/index';
showPrivacyDialog.value = true;
return;
}
if (url === '/pages/CreateFamily/index') {
if (!canCreateFamily.value) {
// 显示年龄限制提示弹窗
showAgeDialog.value = true;
...
...
Please
register
or
login
to post a comment