import { createGlobalState } from '@vueuse/core';
import { ref } from 'vue';

/**
 * 全局租户ID状态
 * 使用 createGlobalState 确保组件重新挂载时状态不会丢失
 * @see https://vueuse.org/shared/createGlobalState/
 */
export const useLoginTenantId = createGlobalState(() => {
  const loginTenantId = ref('000000');

  return {
    loginTenantId,
  };
});
