暗黑模式开关

This commit is contained in:
yyy 2025-03-05 14:50:45 +08:00
parent c4d9ddee35
commit bfa15c63af
2 changed files with 5 additions and 3 deletions

View File

@ -31,7 +31,7 @@
class="relative flex-1 p-30px dark:bg-[var(--login-bg-color)] lt-sm:p-10px overflow-x-hidden overflow-y-auto"
>
<!-- 右上角的主题语言选择 -->
<!-- <div
<div
class="flex items-center justify-between at-2xl:justify-end at-xl:justify-end"
style="color: var(--el-text-color-primary)"
>
@ -41,9 +41,9 @@
</div>
<div class="flex items-center justify-end space-x-10px h-48px">
<ThemeSwitch />
<LocaleDropdown />
<!-- <LocaleDropdown /> -->
</div>
</div> -->
</div>
<!-- 右边的登录界面 -->
<Transition appear enter-active-class="animate__animated animate__bounceInRight">
<div

View File

@ -717,6 +717,8 @@ const dragEnd = (locationX, locationY, item, index) => {
let x = Number(locationX) + Number(item.locationWidePx) / 2
let y = Number(locationY) + Number(item.locationDeepPx) / 2
console.log(x, y)
if (x === item.locationX && y === item.locationY) return
let actualPoint = disposeEventPoint(x, y)
state.allMapPointInfo[index].locationX = x