shouye.vue 390 B

123456789101112131415161718
  1. <template>
  2. <view>
  3. 总部管理员/跑单员首页 {{counter.count}}
  4. <view v-if="data">{{data}}</view>
  5. <view v-else>未设置缓存</view>
  6. </view>
  7. </template>
  8. <script setup>
  9. import { useCounterStore } from "@/store/counter.js"
  10. // 总部管理员/跑单员首页
  11. import { getAuth } from '@/utils/auth';
  12. const data = getAuth();
  13. const counter = useCounterStore();
  14. </script>