From 6177dc9a238deb87ec56c8e485e8ed342694c844 Mon Sep 17 00:00:00 2001 From: yuanshun <1422672890@qq.com> Date: Wed, 3 Jan 2024 18:06:50 +0800 Subject: [PATCH] ts --- src/components/list/ContractList.vue | 2 +- src/components/list/TalentList.vue | 2 +- src/components/list/message.vue | 2 +- src/view/task/components/CitySwitch.vue | 2 +- src/view/task/components/Screen.vue | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/list/ContractList.vue b/src/components/list/ContractList.vue index 8f91538..ed97fe1 100644 --- a/src/components/list/ContractList.vue +++ b/src/components/list/ContractList.vue @@ -2,7 +2,7 @@ import { useRouter } from "vue-router"; const props=defineProps({ contractList:{ - type:Array, + type:Array, default:()=>[] } }) diff --git a/src/components/list/TalentList.vue b/src/components/list/TalentList.vue index 95a0b25..6294915 100644 --- a/src/components/list/TalentList.vue +++ b/src/components/list/TalentList.vue @@ -2,7 +2,7 @@ import { useRouter } from "vue-router"; const props=defineProps({ talentList:{ - type:Array, + type:Array, default:()=>[] } }) diff --git a/src/components/list/message.vue b/src/components/list/message.vue index eca9a25..b694a19 100644 --- a/src/components/list/message.vue +++ b/src/components/list/message.vue @@ -2,7 +2,7 @@ import { useRouter } from "vue-router"; const props=defineProps({ messageList:{ - type:Array, + type:Array, default:()=>[] } }) diff --git a/src/view/task/components/CitySwitch.vue b/src/view/task/components/CitySwitch.vue index b1205e7..e1a4103 100644 --- a/src/view/task/components/CitySwitch.vue +++ b/src/view/task/components/CitySwitch.vue @@ -5,7 +5,7 @@ import { taskStore } from "../../../store/task"; import { showToast } from 'vant' const { closeCitySwitch }:any = inject('popup',) -const store=taskStore() +const store:any=taskStore() const leftBack = ()=>{ closeCitySwitch() } diff --git a/src/view/task/components/Screen.vue b/src/view/task/components/Screen.vue index e67ddc2..c4b68ca 100644 --- a/src/view/task/components/Screen.vue +++ b/src/view/task/components/Screen.vue @@ -3,12 +3,12 @@ import { screenList } from "../../../api/task"; import { taskStore } from "../../../store/task"; import { showToast } from 'vant' -const state=reactive({ +const state:any=reactive({ mode:'', cycle:'', }) const { closeScreenBool }:any = inject('popup') -const store=taskStore() +const store:any=taskStore() const leftBack = ()=>{ closeScreenBool() }