Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
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
吴迪
gs1
Commits
bca2d64f
Commit
bca2d64f
authored
Dec 27, 2021
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 错误提示
parent
37be0f2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
external.vue
src/views/Search/external.vue
+1
-1
gln.vue
src/views/Search/gln.vue
+3
-1
No files found.
src/views/Search/external.vue
View file @
bca2d64f
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
if
(
data
.
returnCode
===
'0'
)
{
if
(
data
.
returnCode
===
'0'
)
{
this
.
result
=
[
data
];
this
.
result
=
[
data
];
}
else
{
}
else
{
this
.
errorMsg
=
"暂无数据"
;
this
.
errorMsg
=
searchGlnRes
.
returnMsg
||
"暂无数据"
;
}
}
}
else
{
}
else
{
this
.
errorMsg
=
this
.
errorMsg
=
...
...
src/views/Search/gln.vue
View file @
bca2d64f
...
@@ -121,8 +121,10 @@ export default {
...
@@ -121,8 +121,10 @@ export default {
const
params
=
{...
this
.
search
};
const
params
=
{...
this
.
search
};
const
searchGlnRes
=
await
this
.
$api
.
search
.
searchGln
(
params
);
const
searchGlnRes
=
await
this
.
$api
.
search
.
searchGln
(
params
);
const
{
returnCode
,
data
}
=
searchGlnRes
;
const
{
returnCode
,
data
}
=
searchGlnRes
;
console
.
log
(
searchGlnRes
)
console
.
log
(
data
)
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
if
(
data
.
returnCode
===
'0'
)
{
if
(
data
.
returnCode
===
'0'
||
data
.
returnCode
===
'3'
)
{
this
.
result
=
[
data
];
this
.
result
=
[
data
];
}
else
{
}
else
{
this
.
errorMsg
=
"暂无数据"
;
this
.
errorMsg
=
"暂无数据"
;
...
...
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