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
1
Merge Requests
1
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
alpha
sun
Commits
2257f241
Commit
2257f241
authored
Dec 12, 2018
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加空值判断
parent
9009309a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
GroupDetail.vue
vu/src/views/group/components/GroupDetail.vue
+4
-0
StarDetail.vue
vu/src/views/star/components/StarDetail.vue
+4
-0
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 @@
...
@@ -333,7 +333,11 @@
let
rep
=
response
.
data
.
data
let
rep
=
response
.
data
.
data
this
.
postForm
=
response
.
data
.
data
this
.
postForm
=
response
.
data
.
data
if
(
rep
.
creator
.
id
&&
rep
.
creator
.
name
){
this
.
user
=
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
++
)
{
for
(
let
i
=
0
;
i
<
rep
.
star
.
length
;
i
++
)
{
this
.
star
.
push
(
rep
.
star
[
i
][
'id'
]
+
':'
+
rep
.
star
[
i
][
'name'
])
this
.
star
.
push
(
rep
.
star
[
i
][
'id'
]
+
':'
+
rep
.
star
[
i
][
'name'
])
}
}
...
...
vu/src/views/star/components/StarDetail.vue
View file @
2257f241
...
@@ -283,7 +283,11 @@
...
@@ -283,7 +283,11 @@
starDetail
(
id
).
then
(
response
=>
{
starDetail
(
id
).
then
(
response
=>
{
let
rep
=
response
.
data
.
data
.
data
let
rep
=
response
.
data
.
data
.
data
this
.
postForm
=
rep
this
.
postForm
=
rep
if
(
rep
.
city
.
id
&&
rep
.
city
.
name
){
this
.
city
=
rep
.
city
.
id
+
':'
+
rep
.
city
.
name
this
.
city
=
rep
.
city
.
id
+
':'
+
rep
.
city
.
name
}
else
{
this
.
city
=
''
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
})
})
...
...
vu/src/views/user/components/UserDetail.vue
View file @
2257f241
...
@@ -200,7 +200,6 @@
...
@@ -200,7 +200,6 @@
rules
:
{
rules
:
{
nick_name
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
nick_name
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
avatar
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
avatar
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
avatar
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
},
},
tempRoute
:
{},
tempRoute
:
{},
GenderTypeOptions
:
[
GenderTypeOptions
:
[
...
...
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