@@ -51,8 +51,30 @@ Vue.prototype.$msg = (data)=>{
...data
});
}
-
+Vue.prototype.$msg.success = (string)=>{
+ return Message.success({
+ offset:100,
+ message: string
+ });
+}
+Vue.prototype.$msg.warning = (string)=>{
+ return Message.warning({
+Vue.prototype.$msg.message = (string)=>{
+ return Message.message({
+Vue.prototype.$msg.error = (string)=>{
+ return Message.error({
Vue.prototype.$videoImg =
"?x-oss-process=video/snapshot,t_0,f_jpg,w_0,h_0,m_fast,ar_auto";
@@ -217,7 +217,7 @@ export const http = {
xhr.done((result) => {
- if (typeof result.code !== "undefined") {
+ if (typeof result.code !== "undefined") {
const flag = statusCodesHandler(result, function(code) {
// 需要登录的状态
if (code == statusCode.FAILURE_CODE_5001) {
@@ -236,7 +236,7 @@ export const http = {
return;
- if (flag === statusCode.FILE) {
+ if (flag === statusCode.FILE) { // 并没有这个值
done(result);