Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
de9d2234
Commit
de9d2234
authored
Jun 17, 2025
by
tao.huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: init后置
parent
ad54cbc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
md.js
md.js
+1
-1
user.js
stores/user.js
+5
-2
No files found.
md.js
View file @
de9d2234
...
...
@@ -22,7 +22,7 @@ const init = (SENSORS_URL) => {
enableVue3MpClick
();
sensors
.
init
();
//
sensors.init();
};
const
login
=
(
ext
)
=>
{
...
...
stores/user.js
View file @
de9d2234
...
...
@@ -10,6 +10,7 @@ import {
}
from
"../api/user.js"
;
import
{
useGlobalStore
}
from
"./global.js"
;
import
{
useHomeStore
}
from
"./home.js"
;
import
md
from
"../md.js"
;
const
globalStore
=
useGlobalStore
();
...
...
@@ -158,16 +159,18 @@ export const useUserStore = defineStore("userInfo", {
async
wxAutoLogin
()
{
uni
.
login
({
provider
:
"weixin"
,
success
:
(
res
)
=>
{
success
:
async
(
res
)
=>
{
console
.
log
(
"wxAutoLogin"
,
res
);
if
(
res
.
errMsg
===
"login:ok"
)
{
this
.
autoLoginByCode
(
res
.
code
);
await
this
.
autoLoginByCode
(
res
.
code
);
}
else
{
uni
.
showToast
({
title
:
res
.
errMsg
,
icon
:
"error"
,
});
}
md
.
sensors
.
init
();
},
});
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment