🚨 修复 Qodana 报错

This commit is contained in:
目棃
2024-03-31 23:26:05 +08:00
parent d9bbe4e7fe
commit d8ade955b4
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@
<ToCalendar v-model="showItem" :data-type="selectedType" :data-val="selectedItem" />
</template>
<script lang="ts" setup>
import { computed, onMounted, ref } from "vue";
import { onMounted, ref } from "vue";
import THomecard from "./t-homecard.vue";
import { AppCalendarData } from "../../data";
@@ -130,7 +130,7 @@ function getCalendar(day: number): TGApp.App.Calendar.Item[] {
}
function getGrid(): TGApp.App.Calendar.Item[] {
let selectedCards: TGApp.App.Calendar.Item[] = [];
let selectedCards: TGApp.App.Calendar.Item[];
if (switchType.value === "avatar") {
selectedCards = characterCards.value;
} else {

View File

@@ -10,7 +10,7 @@ import TGLogger from "../../utils/TGLogger";
interface TpUnknownProps {
data: TGApp.Plugins.Mys.SctPost.Empty;
next: unknown;
next?: unknown;
}
const props = defineProps<TpUnknownProps>();