Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
ycc-website
Commits
f102c826
Commit
f102c826
authored
Feb 21, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复错误提示
parent
4f5fe512
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
scene.vue
src/components/pc/scene.vue
+3
-0
block.ts
src/mixin/block.ts
+3
-2
No files found.
src/components/pc/scene.vue
View file @
f102c826
...
@@ -128,7 +128,10 @@ export default Vue.extend({
...
@@ -128,7 +128,10 @@ export default Vue.extend({
this
.
initTimer
()
this
.
initTimer
()
},
},
moveBlock
(
i
:
number
,
b
:
boolean
)
{
moveBlock
(
i
:
number
,
b
:
boolean
)
{
if
(
!
this
.
$refs
.
box
)
return
;
const
el
=
(
this
.
$refs
.
box
as
any
&
{
style
:
()
=>
any
})?.
style
const
el
=
(
this
.
$refs
.
box
as
any
&
{
style
:
()
=>
any
})?.
style
// 当第四个点时回归原始translate
// 当第四个点时回归原始translate
if
(
b
)
{
if
(
b
)
{
el
.
transform
=
`translate3d(-
${
this
.
l_width
*
(
i
-
2
)}
px, 0, 0)`
el
.
transform
=
`translate3d(-
${
this
.
l_width
*
(
i
-
2
)}
px, 0, 0)`
...
...
src/mixin/block.ts
View file @
f102c826
...
@@ -97,8 +97,9 @@ export default Vue.extend({
...
@@ -97,8 +97,9 @@ export default Vue.extend({
}
}
info
.
map
((
i
:
any
)
=>
{
info
.
map
((
i
:
any
)
=>
{
Rpc
.
getBlockHash
(
i
.
height
).
then
((
ret
)
=>
{
Rpc
.
getBlockHash
(
i
.
height
).
then
((
ret
)
=>
{
this
.
Blocks
.
find
((
block
)
=>
block
.
height
===
i
.
height
).
hash
=
(
ret
.
result
.
hash
;
this
.
Blocks
.
find
((
block
)
=>
block
.
height
===
i
.
height
)
||
{}
).
hash
=
ret
.
result
.
hash
;
this
.
Blocks
=
[...
this
.
Blocks
];
this
.
Blocks
=
[...
this
.
Blocks
];
});
});
});
});
...
...
chenqikuai
@chenqikuai
mentioned in commit
748f7ae1
·
Mar 03, 2022
mentioned in commit
748f7ae1
mentioned in commit 748f7ae18ac2f8eb14ee7c2865eaea786342a520
Toggle commit list
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