| 123456789101112131415 |
- import store from '@/store';
- import { GetMemberIdByEncryptData } from '@/pagesCrm/service';
- export const useGetMemberIdByEncryptData = async (EncryptData) => {
- if (!EncryptData) return;
- const { resData, resp } = await GetMemberIdByEncryptData({
- EncryptData,
- });
- console.log(resData);
- if(resData.RespCode != "10000") {
- throw new Error(`${resData.RespMessage || "获取身份信息失败"}`);
- }
- store.commit('setCurrentUser', resp[0]);
- return resp[0];
- };
|