Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp-customer-people-recruitment-h5
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
mp-customer-people-recruitment-h5
Commits
e1fc61f9
Commit
e1fc61f9
authored
Oct 09, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v-console
parent
955db463
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
0 deletions
+7
-0
.gitignore
.gitignore
+2
-0
package.json
package.json
+1
-0
main.ts
src/main.ts
+2
-0
index.vue
src/pages/login/index.vue
+2
-0
yarn.lock
yarn.lock
+0
-0
No files found.
.gitignore
View file @
e1fc61f9
...
...
@@ -12,6 +12,8 @@ node_modules
dist
build
*.local
yarn.lock
package-lock.json
# Editor directories and files
.idea
...
...
package.json
View file @
e1fc61f9
...
...
@@ -26,6 +26,7 @@
"
dayjs
"
:
"^1.11.12"
,
"
lodash
"
:
"^4.17.21"
,
"
pinia
"
:
"2.0.36"
,
"
vconsole
"
:
"^3.15.1"
,
"
vue
"
:
"^3.3.11"
,
"
vue-i18n
"
:
"^9.1.9"
,
"
wot-design-uni
"
:
"^1.3.2"
...
...
src/main.ts
View file @
e1fc61f9
import
{
createSSRApp
}
from
'vue'
;
import
App
from
'./App.vue'
;
import
store
from
'./store'
;
import
Vconsole
from
'vconsole'
;
export
function
createApp
()
{
const
app
=
createSSRApp
(
App
);
app
.
use
(
store
);
app
.
use
(
vConsole
);
return
{
app
,
};
...
...
src/pages/login/index.vue
View file @
e1fc61f9
...
...
@@ -18,6 +18,7 @@
<
script
setup
>
import
NavBar
from
"@/components/navBar/index.vue"
;
import
{
xinhuaMpLogin
}
from
"@/api/user.js"
;
import
{
setToken
}
from
"@/utils/token"
;
const
res
=
ref
(
""
);
const
login
=
()
=>
{
xma
.
xh
.
getUserProfile
({
...
...
@@ -27,6 +28,7 @@ const login = () => {
xinhuaMpLogin
({
encryptedData
:
info
.
data
.
uMobile
,
userType
:
'consumer'
})
.
then
(
data
=>
{
res
.
value
=
data
;
setToken
(
data
.
token
);
})
.
catch
(
err
=>
{
res
.
value
=
err
;
...
...
yarn.lock
View file @
e1fc61f9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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