// [pc|mobile]/partials/common-header.js
(() => {
const searchParams = new URLSearchParams(location.search);
const trackingKey = searchParams.get('trackingKey');
const { setTrackingKey } = ShopbySkin.utils;
setTrackingKey(trackingKey);
})();
// [pc|molbile]/partials/sign-in-form.js
(() => {
const { pageHelper, utils } = ShopbySkin;
const signInHelper = pageHelper.signInHelper();
// handleSignInSubmit 함수 수정
const handleSignInSubmit = async (params) => {
const trackingKey = utils.getTrackingKey();
const { data } = await signInHelper.signIn({
payload: {
requestBody: {
memberId,
password,
},
queryString: {
...(trackingKey && { trackingKey }),
},
},
});
}
})();