|
|
@@ -11,12 +11,16 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { usePay } from '@/hooks/usePay';
|
|
|
+import { useUserStore } from '@/store/userStore';
|
|
|
import meInfo from './components/me-info.vue';
|
|
|
import meMenu from './components/me-menu.vue';
|
|
|
|
|
|
+const userStore = useUserStore();
|
|
|
const { getPrice } = usePay();
|
|
|
onLoad(() => {
|
|
|
- getPrice();
|
|
|
+ if (userStore.isLogin) {
|
|
|
+ getPrice();
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|
|
|
|