Skip to content

Commit 10f428c

Browse files
committed
fix: fsevents is only needed in MacOS, so add optionalDependencies for it. Optimize the qrcode status request
1 parent 9705abd commit 10f428c

File tree

3 files changed

+269
-5
lines changed

3 files changed

+269
-5
lines changed

Front/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
"webpack-dev-server": "^3.1.11",
5959
"webpack-merge": "^4.1.0"
6060
},
61+
"optionalDependencies": {
62+
"fsevents": "*"
63+
},
6164
"engines": {
6265
"node": ">= 6.0.0",
6366
"npm": ">= 3.0.0"

Front/src/web/user/userLoginWx.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export default {
5353
return;
5454
}
5555
while (statusRaw.data.code === -1) {
56-
statusRaw = await this.getStatusRaw();
5756
// like Sleep(500ms)
5857
await new Promise(resolve => setTimeout(resolve, 500));
58+
statusRaw = await this.getStatusRaw();
5959
}
6060
if (statusRaw.data.code === 1) {
6161
const response = statusRaw.data;

0 commit comments

Comments
 (0)