使用 storeToRefs

<template>
  <view class="camera-wrapper"> {{ deviceInfo }} </view>
</template>

<script setup>
import { useDeviceStore } from '@/store/device';
import { storeToRefs } from 'pinia';
const { deviceInfo } = storeToRefs(useDeviceStore());
</script>

<style lang="scss" scoped>
.camera-wrapper {
  width: 100%;
  height: 200px;
}
</style>