|
@@ -129,9 +129,8 @@ onMounted(async () => {
|
|
if (import.meta.env.DEV) {
|
|
if (import.meta.env.DEV) {
|
|
origin = import.meta.env.VITE_CONFIG_API_SERVER as string;
|
|
origin = import.meta.env.VITE_CONFIG_API_SERVER as string;
|
|
}
|
|
}
|
|
- const toReplaceOrigin = new URL(response.data).origin;
|
|
|
|
|
|
|
|
- wechat.qrValue = response.data.replace(toReplaceOrigin, origin);
|
|
|
|
|
|
+ wechat.qrValue = response.data + encodeURIComponent("&apiServer=" + origin);
|
|
const trueExamRecordDataId = decodeURIComponent(wechat.qrValue).match(
|
|
const trueExamRecordDataId = decodeURIComponent(wechat.qrValue).match(
|
|
/&examRecordDataId=(\d+)/
|
|
/&examRecordDataId=(\d+)/
|
|
)![1];
|
|
)![1];
|