Commit 5d823f63 by 梁建民

loading

parent 6b6da1e0
...@@ -93,7 +93,8 @@ const actions = { ...@@ -93,7 +93,8 @@ const actions = {
Services.ZiYingIndex(params).then((res) => { Services.ZiYingIndex(params).then((res) => {
let data = res.data; let data = res.data;
Toast.clear();
if (data.error_code == 0) { if (data.error_code == 0) {
commit({ commit({
...@@ -110,7 +111,6 @@ const actions = { ...@@ -110,7 +111,6 @@ const actions = {
message: data.error_msg, message: data.error_msg,
duration: 3000 duration: 3000
}); });
Toast.clear();
} }
}).catch(function (err) { }).catch(function (err) {
...@@ -119,7 +119,6 @@ const actions = { ...@@ -119,7 +119,6 @@ const actions = {
}, },
aggs({commit}, payload) { aggs({commit}, payload) {
Toast.loading({ Toast.loading({
message: '加载中...', message: '加载中...',
forbidClick: true, forbidClick: true,
...@@ -137,9 +136,9 @@ const actions = { ...@@ -137,9 +136,9 @@ const actions = {
Services.aggs(params).then((res) => { Services.aggs(params).then((res) => {
Toast.clear();
let data = res.data; let data = res.data;
if (data.error_code == 0) { if (data.error_code == 0) {
Toast.clear();
commit({ commit({
type: 'aggs', type: 'aggs',
data: data.data, data: data.data,
...@@ -151,7 +150,6 @@ const actions = { ...@@ -151,7 +150,6 @@ const actions = {
message: data.error_msg, message: data.error_msg,
duration: 3000 duration: 3000
}); });
Toast.clear();
} }
}).catch(function (err) { }).catch(function (err) {
Toast.clear(); 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