mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-29 05:24:30 +08:00
修复Bug
This commit is contained in:
1 parent
b38e334753
commit
c29a958689
2 files changed
+15
-4
No files matched your search
@@ -53,6 +53,7 @@ import { LeftOutlined, RightOutlined } from '@ant-design/icons-vue';
|
||||
import EnemyCritical from '../panel/enemyCritical.vue';
|
||||
import { KeyCode } from '../plugin/keyCodes';
|
||||
import { keycode } from '../plugin/utils';
|
||||
import { sleep } from 'mutate-animate';
|
||||
|
||||
const enemy = core.plugin.bookDetailEnemy;
|
||||
const top = ref(core.plugin.bookDetailPos);
|
||||
@@ -81,7 +82,7 @@ function key(e: KeyboardEvent) {
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
top.value = 0;
|
||||
detail = document.getElementById('detail') as HTMLDivElement;
|
||||
detail.style.opacity = '1';
|
||||
@@ -91,6 +92,8 @@ onMounted(() => {
|
||||
let moved = false;
|
||||
let pos = [0, 0];
|
||||
|
||||
await sleep(600);
|
||||
|
||||
useDrag(
|
||||
detail,
|
||||
(x, y) => {
|
||||
@@ -182,7 +185,7 @@ onUnmounted(() => {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@media screen and(max-width:600px) {
|
||||
@media screen and (max-width: 600px) {
|
||||
#detail {
|
||||
width: 95%;
|
||||
height: 100%;
|
||||
|
||||
Reference in new issue
Block a user