Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
simgle_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 28356074
authored
Jul 23, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复(远程日志): 调整初始化时机,确保仅在隐私政策同意后执行
注释掉HomeFrame中应用启动时的远程日志初始化代码,在登录成功后添加初始化调用,符合隐私政策要求。
1 parent
3e676b87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
components/HomeFrame/index.vue
pages/common/login.vue
components/HomeFrame/index.vue
View file @
2835607
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
})
})
// 初始化远程日志(Sentry),此时用户已同意隐私政策
// 初始化远程日志(Sentry),此时用户已同意隐私政策
uni
.
$logger
.
initRemote
()
//
uni.$logger.initRemote()
this
.
_ws
=
new
Ws
()
this
.
_ws
=
new
Ws
()
this
.
_ws
.
connect
()
this
.
_ws
.
connect
()
...
...
pages/common/login.vue
View file @
2835607
...
@@ -199,14 +199,15 @@ export default {
...
@@ -199,14 +199,15 @@ export default {
noSignIn
// 传递 30 天免登状态
noSignIn
// 传递 30 天免登状态
});
});
uni
.
$logger
.
initRemote
()
// 关闭 loading 并跳转到门店选择页面
// 关闭 loading 并跳转到门店选择页面
uni
.
hideLoading
();
uni
.
hideLoading
();
uni
.
$logger
.
local
.
info
(
`
${
username
}
登录成功`
);
// 初始化远程日志(Sentry),此时用户已同意隐私政策
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/selectStore?stores=
${
encodeURIComponent
(
JSON
.
stringify
(
stores
))}
`
url
:
`/pages/common/selectStore?stores=
${
encodeURIComponent
(
JSON
.
stringify
(
stores
))}
`
});
});
uni
.
$logger
.
local
.
info
(
`
${
username
}
登录成功`
);
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
$logger
.
local
.
info
(
`
${
username
}
登录失败,失败原因:
${
error
?.
message
||
error
}
`);
uni
.
$logger
.
local
.
info
(
`
${
username
}
登录失败,失败原因:
${
error
?.
message
||
error
}
`);
uni.hideLoading();
uni.hideLoading();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment