two version
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user