Update home.vue
This commit is contained in:
parent
09e59a751a
commit
d503710595
@ -116,6 +116,14 @@ async function changeTeam({ teamId, corpId, corpName }) {
|
||||
}
|
||||
}
|
||||
|
||||
function safeDecode(value) {
|
||||
try {
|
||||
return decodeURIComponent(value || "");
|
||||
} catch (error) {
|
||||
return value || "";
|
||||
}
|
||||
}
|
||||
|
||||
function parsePendingAction(options = {}) {
|
||||
const type = options.type || "";
|
||||
if (type === "experienceCoupon" && options.issueId && options.corpId) {
|
||||
@ -136,8 +144,8 @@ function parsePendingAction(options = {}) {
|
||||
corpId: normalizeCorpId(options.corpId),
|
||||
teamId: options.teamId || "",
|
||||
customerId: options.customerId,
|
||||
name: options.name || "",
|
||||
corpName: options.corpName || "",
|
||||
name: safeDecode(options.name),
|
||||
corpName: safeDecode(options.corpName),
|
||||
appointmentId: options.appointmentId || "",
|
||||
month: options.month || "",
|
||||
externalUserId: options.externalUserId || "",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user