Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李宁
/
Activity
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 05a18e2f
authored
Dec 01, 2025
by
李宁
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
c362b73a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
20 deletions
zhiJianBusi/zjbPc/src/App.vue
zhiJianBusi/zjbPc/src/views/DashboardLayout.vue
zhiJianBusi/zjbPc/src/views/OpportunityManagement.vue
zhiJianBusi/zjbPc/src/App.vue
View file @
05a18e2
<
template
>
<div
id=
"app"
>
<keep-alive>
<router-view/>
</keep-alive>
<router-view/>
</div>
</
template
>
...
...
zhiJianBusi/zjbPc/src/views/DashboardLayout.vue
View file @
05a18e2
...
...
@@ -272,12 +272,10 @@ export default {
})
}
},
activated
(){
this
.
acc
=
JSON
.
parse
(
localStorage
.
getItem
(
'accountInfo'
))
},
created
()
{
// 初始化认证状态
this
.
$store
.
dispatch
(
'initializeAuth'
)
this
.
acc
=
JSON
.
parse
(
localStorage
.
getItem
(
'accountInfo'
))
}
}
</
script
>
...
...
zhiJianBusi/zjbPc/src/views/OpportunityManagement.vue
View file @
05a18e2
...
...
@@ -540,7 +540,6 @@ export default {
this
.
queryStatus
()
this
.
queryAllBusiLabel
()
},
mounted
()
{
// 延迟注册滚动事件监听器,确保DOM已完全加载
this
.
$nextTick
(()
=>
{
...
...
@@ -551,19 +550,6 @@ export default {
})
},
// keep-alive 激活时的生命周期钩子
activated
()
{
// 重新注册滚动事件监听器
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
,
{
passive
:
true
})
console
.
log
(
'组件被激活,重新注册滚动监听'
)
},
// 组件失活时移除监听器
deactivated
()
{
window
.
removeEventListener
(
'scroll'
,
this
.
handleScroll
)
console
.
log
(
'组件失活,移除滚动监听'
)
},
// 组件销毁时移除监听器
beforeDestroy
()
{
if
(
this
.
scrollTimer
)
{
...
...
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