isBindWx.ts 266 B

12345678910111213
  1. import { useAuthStore } from "@/store/auth";
  2. import { computed } from "vue";
  3. export function useIsBindWx() {
  4. const authStore = useAuthStore();
  5. const isBindWx = computed(() => {
  6. return Boolean(authStore.userInfo?.openId);
  7. });
  8. return {
  9. isBindWx
  10. }
  11. }