Comparing version 1.1.2 to 1.1.3
@@ -26,2 +26,5 @@ 'use strict'; | ||
var showMessage = _.debounce(function () { | ||
if (messageList.length === 0) { | ||
return false; | ||
} | ||
if (messageList[0].type === 1) { | ||
@@ -50,5 +53,2 @@ v.$message.success(messageList[0].message); | ||
messageList.splice(0, 1); | ||
if (messageList.length > 0) { | ||
pushMessage(); | ||
}; | ||
}, 300); | ||
@@ -197,7 +197,2 @@ | ||
} else if (result.data.code === 302) { | ||
messageList.push({ | ||
type: 3, | ||
message: result.data.msg | ||
}); | ||
pushMessage(); | ||
// v.$message.error(result.data.msg) | ||
@@ -211,2 +206,7 @@ sessionStorage.clear(); | ||
messageList = []; | ||
messageList.push({ | ||
type: 3, | ||
message: result.data.msg | ||
}); | ||
pushMessage(); | ||
} else if (result.data.msg && result.data.msg.trim() !== '') { | ||
@@ -213,0 +213,0 @@ messageList.push({ |
{ | ||
"name": "one-sport", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "use for one-sport company", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package