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
a2a7b518
Commit
a2a7b518
authored
Nov 09, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复再次进入单元、任务页控制台报错问题
parent
9632f862
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
MissionPage.ts
assets/middleLayer_for_kyxq/script/MissionPage.ts
+1
-1
UnitPage.ts
assets/middleLayer_for_kyxq/script/UnitPage.ts
+1
-1
No files found.
assets/middleLayer_for_kyxq/script/MissionPage.ts
View file @
a2a7b518
...
@@ -204,7 +204,7 @@ export default class NewClass extends cc.Component {
...
@@ -204,7 +204,7 @@ export default class NewClass extends cc.Component {
const
sy
=
canvas
.
height
/
sf
.
node
.
height
;
const
sy
=
canvas
.
height
/
sf
.
node
.
height
;
bg
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sf
.
spriteFrame
;
bg
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sf
.
spriteFrame
;
bg
.
scale
=
Math
.
max
(
sx
,
sy
);
bg
.
scale
=
Math
.
max
(
sx
,
sy
);
cc
.
find
(
"
bg/bg_default
"
,
this
.
node
).
destroy
()
;
cc
.
find
(
"
bg/bg_default
"
,
this
.
node
).
opacity
=
0
;
})
})
}
}
...
...
assets/middleLayer_for_kyxq/script/UnitPage.ts
View file @
a2a7b518
...
@@ -75,7 +75,7 @@ export default class NewClass extends cc.Component {
...
@@ -75,7 +75,7 @@ export default class NewClass extends cc.Component {
const
sy
=
canvas
.
height
/
sf
.
node
.
height
;
const
sy
=
canvas
.
height
/
sf
.
node
.
height
;
bg
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sf
.
spriteFrame
;
bg
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sf
.
spriteFrame
;
bg
.
scale
=
Math
.
max
(
sx
,
sy
);
bg
.
scale
=
Math
.
max
(
sx
,
sy
);
cc
.
find
(
"
bg/bg_default
"
,
this
.
node
).
destroy
()
;
cc
.
find
(
"
bg/bg_default
"
,
this
.
node
).
opacity
=
0
;
})
})
}
}
...
...
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