two version

This commit is contained in:
2025-12-01 15:09:09 +08:00
parent 80b00d9e5d
commit 4d267d4eba
11 changed files with 28 additions and 14 deletions

View File

@@ -62,10 +62,10 @@
</view>
</view>
</view>
<!-- <view class="">
<view class="">
{{roomData}}
</view> -->
</view>
</view>
</view>
</template>
@@ -75,14 +75,17 @@ import { ref, onMounted } from 'vue'
import { getOpenId } from '@/utils/wxutils.js'
import { GET, POST } from '../../utils/request'
import StaticValue from '@/utils/StaticValue.js';
import { login } from '../../api/user';
const loading = ref(false);
//定义承接本地用户信息对象
const roomData = ref([]);
onMounted(() => {
const getUserInfo = StaticValue.getUserInfo;
roomData.value = getUserInfo();
console.log("roomData:",roomData.value.userId)
})