e hace 3 meses
padre
commit
1b9fea6eda
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      15.vue3/project1/src/components/Demo15.vue

+ 1 - 1
15.vue3/project1/src/components/Demo15.vue

@@ -10,7 +10,7 @@ import { ref, reactive, isReactive } from "vue";
 import { type PersonInter, newPerson,happy } from "@/types/demo15";
 
 // let weather: string = "晴天";
-let weather:string = ref("晴天");
+let weather = ref<string>("晴天");
 
 
 function fn5<T extends happy>(a:T):T {