Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FuLiMini
Project
Overview
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
wangjian
FuLiMini
Commits
af1111b0
Commit
af1111b0
authored
Apr 26, 2022
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8c489047
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
mine.vue
pages/mine/mine.vue
+10
-1
No files found.
pages/mine/mine.vue
View file @
af1111b0
...
...
@@ -124,6 +124,15 @@
}
})
},
changeInfo
(
value
)
{
this
.
$net
.
post
(
'/staff/modify'
,
{
'staffKey'
:
'avatar'
,
'staffValue'
:
value
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
getUserInfo
()
}
else
{
this
.
toast
(
res
.
message
)
}
})
},
getImg
()
{
if
(
!
this
.
$store
.
state
.
isLogin
)
{
this
.
$router
.
push
(
'Login'
)
...
...
@@ -137,7 +146,7 @@
success
:
function
(
res
)
{
that
.
$net
.
uploadImage
(
res
.
tempFilePaths
[
0
],
'uploadFile'
,
1000
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
==
200
)
{
that
.
getUserInfo
(
)
that
.
changeInfo
(
res
.
data
.
filePath
)
}
else
{
that
.
toast
(
res
.
message
)
}
...
...
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