Explorar o código

refactor: 修改script为lang="ts"

HMY hai 1 ano
pai
achega
46015293fd

+ 1 - 1
pages/mine/checkIn/checkIn.vue

@@ -127,7 +127,7 @@
 	</view>
 	</view>
 </template>
 </template>
 
 
-<script setup>
+<script setup lang="ts">
 	import {
 	import {
 		ref,
 		ref,
 		onMounted,
 		onMounted,

+ 1 - 1
pages/mine/clockIn/clockIn.vue

@@ -43,7 +43,7 @@
 </template>
 </template>
 
 
 
 
-<script setup>
+<script setup lang="ts">
 	import {
 	import {
 		onBeforeUnmount,
 		onBeforeUnmount,
 		onMounted,
 		onMounted,

+ 5 - 1
pages/mine/edit/edit.vue

@@ -54,7 +54,7 @@
 	</view>
 	</view>
 </template>
 </template>
 
 
-<script setup>
+<script setup lang="ts">
 	import {
 	import {
 		ref,
 		ref,
 		reactive,
 		reactive,
@@ -74,6 +74,10 @@
 		qq:thisUser.qqnum,
 		qq:thisUser.qqnum,
 		msn:thisUser.msnnum
 		msn:thisUser.msnnum
 	});
 	});
+	onMounted(()=>{
+		console.log('thisUser',thisUser);
+		console.log('userInfo',userInfo);
+	})
 	
 	
 	
 	
 	// function handleGenderChange(event) {
 	// function handleGenderChange(event) {

+ 1 - 1
pages/mine/index.vue

@@ -69,7 +69,7 @@
 	</view>
 	</view>
 </template>
 </template>
 
 
-<script setup>
+<script setup lang="ts">
 	import {
 	import {
 		ref,
 		ref,
 		reactive,
 		reactive,

+ 1 - 1
pages/mine/setting/setting.vue

@@ -34,7 +34,7 @@
 	</view>
 	</view>
 </template>
 </template>
 
 
-<script setup>
+<script setup lang="ts">
 	import $tab from "@/plugins/tab.js"
 	import $tab from "@/plugins/tab.js"
 	import { getUserInfo } from '@/utils/auth'
 	import { getUserInfo } from '@/utils/auth'
 	import { useUserStore } from '@/store/user.js'
 	import { useUserStore } from '@/store/user.js'