Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
xqz
/
dianDemo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6f9a7170
authored
2020-04-22 17:49:25 +0800
by
sunnie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加get
1 parent
eca985dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
README.md
src/api/user.js
src/views/home/about.vue
README.md
View file @
6f9a717
...
...
@@ -522,7 +522,7 @@ import request from '@/utils/request'
export
function
getUserInfo
(
params
)
{
return
request
({
url
:
'/user/userinfo'
,
method
:
'
ge
t'
,
method
:
'
pos
t'
,
data
:
qs
.
stringify
(
params
),
hideloading
:
true
// 隐藏 loading 组件
})
...
...
src/api/user.js
View file @
6f9a717
...
...
@@ -11,12 +11,21 @@ export function login(params) {
data
:
qs
.
stringify
(
params
)
})
}
// 用户信息
// 用户信息
post 方法
export
function
getUserInfo
(
params
)
{
return
request
({
url
:
'/user/userinfo'
,
method
:
'
ge
t'
,
method
:
'
pos
t'
,
data
:
qs
.
stringify
(
params
),
hideloading
:
true
})
}
// 用户名称 get 方法
export
function
getUserName
(
params
)
{
return
request
({
url
:
'/user/name?'
+
qs
.
stringify
(
params
),
method
:
'get'
,
hideloading
:
true
})
}
...
...
src/views/home/about.vue
View file @
6f9a717
...
...
@@ -5,7 +5,7 @@
<div
class=
"list"
>
<div
class=
"logo"
></div>
<div
class=
"demo-home__title"
>
VUE H5开发模板
</div>
<div
class=
"item"
>
项目地址:
<a
href=
"https://github.com/sunniejs
"
>
https://github.com/sunniejs
</a></div>
<div
class=
"item"
>
项目地址:
<a
href=
"https://github.com/sunniejs
/vue-h5-template"
>
https://github.com/sunniejs/vue-h5-template
</a></div>
<div
class=
"item"
>
项目作者: sunnie
</div>
<div
class=
"item"
></div>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment