Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
钟尚武
sun
Commits
2257f241
Commit
2257f241
authored
6 years ago
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加空值判断
parent
9009309a
master
dev
like-pre/r01
quick-reply
refactor
test
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
GroupDetail.vue
vu/src/views/group/components/GroupDetail.vue
+5
-1
StarDetail.vue
vu/src/views/star/components/StarDetail.vue
+5
-1
UserDetail.vue
vu/src/views/user/components/UserDetail.vue
+0
-1
No files found.
vu/src/views/group/components/GroupDetail.vue
View file @
2257f241
...
...
@@ -333,7 +333,11 @@
let
rep
=
response
.
data
.
data
this
.
postForm
=
response
.
data
.
data
this
.
user
=
rep
.
creator
.
id
+
':'
+
rep
.
creator
.
name
if
(
rep
.
creator
.
id
&&
rep
.
creator
.
name
){
this
.
user
=
rep
.
creator
.
id
+
':'
+
rep
.
creator
.
name
}
else
{
this
.
user
=
''
}
for
(
let
i
=
0
;
i
<
rep
.
star
.
length
;
i
++
)
{
this
.
star
.
push
(
rep
.
star
[
i
][
'id'
]
+
':'
+
rep
.
star
[
i
][
'name'
])
}
...
...
This diff is collapsed.
Click to expand it.
vu/src/views/star/components/StarDetail.vue
View file @
2257f241
...
...
@@ -283,7 +283,11 @@
starDetail
(
id
).
then
(
response
=>
{
let
rep
=
response
.
data
.
data
.
data
this
.
postForm
=
rep
this
.
city
=
rep
.
city
.
id
+
':'
+
rep
.
city
.
name
if
(
rep
.
city
.
id
&&
rep
.
city
.
name
){
this
.
city
=
rep
.
city
.
id
+
':'
+
rep
.
city
.
name
}
else
{
this
.
city
=
''
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
...
...
This diff is collapsed.
Click to expand it.
vu/src/views/user/components/UserDetail.vue
View file @
2257f241
...
...
@@ -200,7 +200,6 @@
rules
:
{
nick_name
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
avatar
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
avatar
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
},
tempRoute
:
{},
GenderTypeOptions
:
[
...
...
This diff is collapsed.
Click to expand it.
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