From 5a424170415da0453c2bada6441bc98c1b02f151 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 10 十月 2023 11:23:32 +0800
Subject: [PATCH] 工艺模型 增加产品+样式调整+再次打开弹框的分页修改
---
src/utils/request.js | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/utils/request.js b/src/utils/request.js
index 23a0a72..36fd89f 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -1,6 +1,6 @@
import axios from "axios";
import util from "@/libs/util.js";
-import { Message } from "element-ui";
+import { Message,MessageBox } from "element-ui";
// import router from '@/router'
@@ -42,8 +42,16 @@
// message: res.data.msg==res.data.data?res.data.data:res.data.msg+','+res.data.data,
message: res.data.msg,
type: 'error',
- duration: 5 * 1000
+ duration: 3 * 1000
})
+ // MessageBox.confirm( res.data.msg+"?", "鎻愮ず", {
+ // confirmButtonText: "纭畾",
+ // cancelButtonText: "鍙栨秷",
+ // type: "warning",
+ // })
+ // .then(() => {
+ // })
+ // .catch(() => {});
}
return res.data ? res.data : {};
}
@@ -60,8 +68,15 @@
Message({
message: message,
type: 'error',
- duration: 5 * 1000
+ duration: 3 * 1000
})
+ // MessageBox.confirm( message+"?", "鎻愮ず", {
+ // confirmButtonText: "纭畾",
+ // cancelButtonText: "鍙栨秷",
+ // type: "warning",
+ // })
+ // .then(() => {})
+ // .catch(() => {});
return Promise.reject(error)
}
)
--
Gitblit v1.8.0