misc: JSON.parse 중 any인 것에 type 지정

This commit is contained in:
2022-04-12 22:45:22 +09:00
parent 6b1006ec19
commit 24474c9f7a
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -456,12 +456,12 @@ const inheritRequiredPoint = computed(() => {
const toggleZoom = ref(true);
const displayTable = ref(JSON.parse(localStorage.getItem(`conf.${serverID}.join.displayTable`) ?? "true"));
const displayTable = ref<boolean>(JSON.parse(localStorage.getItem(`conf.${serverID}.join.displayTable`) ?? "true"));
watch(displayTable, (newValue: boolean) => {
localStorage.setItem(`conf.${serverID}.join.displayTable`, JSON.stringify(newValue));
});
const displayInherit = ref(JSON.parse(localStorage.getItem(`conf.${serverID}.join.displayInherit`) ?? "true"));
const displayInherit = ref<boolean>(JSON.parse(localStorage.getItem(`conf.${serverID}.join.displayInherit`) ?? "true"));
watch(displayInherit, (newValue: boolean) => {
localStorage.setItem(`conf.${serverID}.join.displayInherit`, JSON.stringify(newValue));
});