Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
middleLayer_for_kyxq
Commits
358bae43
Commit
358bae43
authored
Nov 22, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正看动画页面缓存上个页面内容的问题
parent
08e9d720
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
LibraryVideoPage.ts
assets/middleLayer_for_kyxq/script/LibraryVideoPage.ts
+5
-1
No files found.
assets/middleLayer_for_kyxq/script/LibraryVideoPage.ts
View file @
358bae43
...
...
@@ -57,6 +57,9 @@ export default class LibraryVideoPageClass extends PageComponentBaseClass {
beforeMount
(
data
:
any
):
void
{
this
.
updateTitle
(
""
);
const
sv
=
this
.
scrollView
.
getComponent
(
cc
.
ScrollView
);
sv
.
content
.
destroyAllChildren
();
sv
.
content
.
removeAllChildren
();
}
initUI
()
{
...
...
@@ -107,7 +110,8 @@ export default class LibraryVideoPageClass extends PageComponentBaseClass {
const
itemArr
=
this
.
getItemArr
(
this
.
data
);
const
sv
=
svNode
.
getComponent
(
cc
.
ScrollView
);
sv
.
content
.
removeAllChildren
()
sv
.
content
.
destroyAllChildren
();
sv
.
content
.
removeAllChildren
();
// sv.content.height=0
let
_rowCnt
=
3
for
(
let
i
=
0
;
i
<
Math
.
ceil
(
itemArr
.
length
/
_rowCnt
);
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment