123456789101112131415161718 |
- <template>
- <view>
- 总部管理员/跑单员首页 {{counter.count}}
- <view v-if="data">{{data}}</view>
- <view v-else>未设置缓存</view>
- </view>
- </template>
- <script setup>
- import { useCounterStore } from "@/store/counter.js"
- // 总部管理员/跑单员首页
- import { getAuth } from '@/utils/auth';
- const data = getAuth();
- const counter = useCounterStore();
- </script>
|