|
@@ -805,7 +805,12 @@ export default {
|
|
|
testEnv: true,
|
|
|
}
|
|
|
);
|
|
|
- this.wechat.qrValue = response.data;
|
|
|
+ let origin = window.location.origin;
|
|
|
+ if (process.env.NODE_ENV === "development") {
|
|
|
+ origin = process.env.VUE_APP_API_SERVER;
|
|
|
+ }
|
|
|
+ this.wechat.qrValue =
|
|
|
+ response.data + encodeURIComponent("&apiServer=" + origin);
|
|
|
const trueExamRecordDataId = decodeURIComponent(response.data).match(
|
|
|
/&examRecordDataId=(\d+)/
|
|
|
)[1];
|