This commit is contained in:
2025-09-02 17:10:00 +08:00
parent 981d93d28f
commit 888cca65e1
3 changed files with 55 additions and 43 deletions

View File

@@ -65,8 +65,8 @@ export function useDesktopInit(containerStr: string) {
const oldAppIcon = oldAppIcons.find(oldAppIcon => oldAppIcon.name === processInfo.name)
// 左上角坐标原点,从上到下从左到右 索引从1开始
const x = Math.floor(index / gridTemplate.rowCount) + 1
const y = index % gridTemplate.rowCount + 1
const x = index % gridTemplate.rowCount + 1
const y = Math.floor(index / gridTemplate.rowCount) + 1
return {
name: processInfo.name,