Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5d823f63
authored
Feb 24, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
loading
parent
6b6da1e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
src/store/modules/sample/index.js
view/app.js
src/store/modules/sample/index.js
View file @
5d823f63
...
...
@@ -93,7 +93,8 @@ const actions = {
Services
.
ZiYingIndex
(
params
).
then
((
res
)
=>
{
let
data
=
res
.
data
;
Toast
.
clear
();
if
(
data
.
error_code
==
0
)
{
commit
({
...
...
@@ -110,7 +111,6 @@ const actions = {
message
:
data
.
error_msg
,
duration
:
3000
});
Toast
.
clear
();
}
}).
catch
(
function
(
err
)
{
...
...
@@ -119,7 +119,6 @@ const actions = {
},
aggs
({
commit
},
payload
)
{
Toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
...
...
@@ -137,9 +136,9 @@ const actions = {
Services
.
aggs
(
params
).
then
((
res
)
=>
{
Toast
.
clear
();
let
data
=
res
.
data
;
if
(
data
.
error_code
==
0
)
{
Toast
.
clear
();
commit
({
type
:
'aggs'
,
data
:
data
.
data
,
...
...
@@ -151,7 +150,6 @@ const actions = {
message
:
data
.
error_msg
,
duration
:
3000
});
Toast
.
clear
();
}
}).
catch
(
function
(
err
)
{
Toast
.
clear
();
...
...
view/app.js
View file @
5d823f63
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