index.ts 330 B

123456789101112
  1. import store from '@/store';
  2. import { GetMemberIdByEncryptData } from '@/pagesCrm/service';
  3. export const useGetMemberIdByEncryptData = async (EncryptData) => {
  4. if (!EncryptData) return;
  5. const res = await GetMemberIdByEncryptData({
  6. EncryptData,
  7. });
  8. console.log(res);
  9. store.commit('setCurrentUser', res[0]);
  10. return res;
  11. };