feat: 새 지도 모듈 마무리

This commit is contained in:
2022-04-20 03:29:48 +09:00
parent 5a9322f003
commit 6bee1c1440
3 changed files with 16 additions and 25 deletions
+5 -1
View File
@@ -80,11 +80,15 @@ watch(
left: `${x - 20}px`,
top: `${y - 15}px`,
};
} else {
cityPos.value = {
left: `${(x * 5) / 7 - 20}px`,
top: `${(y * 5) / 7 - 18}px`,
};
}
},
{ immediate: true }
);
function getCityState(): string {
const state = city.value.state;
if (state < 10) {