🚨 修复qodana、oxlint报错

This commit is contained in:
BTMuli
2024-01-07 00:30:26 +08:00
parent 779f649884
commit da7060fe44
2 changed files with 8 additions and 3 deletions

View File

@@ -122,6 +122,11 @@ interface ToUcDetailData {
bgFit: "contain" | "cover";
}
interface ToUcDetailSelect {
type: "命座" | "武器" | "圣遗物";
pos: number;
}
const emits = defineEmits<ToUcDetailEmits>();
const props = defineProps<ToUcDetailProps>();
const visible = computed({
@@ -148,8 +153,8 @@ const selectWeapon = ref<TGApp.Sqlite.Character.RoleWeapon>(<TGApp.Sqlite.Charac
const selectRelic = ref<TGApp.Sqlite.Character.RoleReliquary>(
<TGApp.Sqlite.Character.RoleReliquary>{},
);
const selected = ref({
type: "武器" || "命之座" || "圣遗物",
const selected = ref<ToUcDetailSelect>({
type: "武器",
pos: 0,
});

View File

@@ -26,7 +26,7 @@
</div>
</template>
<script setup lang="ts">
import { onBeforeMount, onMounted, ref, watch } from "vue";
import { onMounted, ref, watch } from "vue";
import { parseHtmlText } from "../../utils/toolFunc";