Commit 5d823f63 by 梁建民

loading

parent 6b6da1e0
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment