|
@@ -57,17 +57,13 @@ function getPusgWarning(){
|
|
}
|
|
}
|
|
|
|
|
|
if(mrId){
|
|
if(mrId){
|
|
- getMRInfo().then(res =>{
|
|
|
|
- if(res.data.code == '0'){
|
|
|
|
- msg = res.data.data ||{}
|
|
|
|
- window.msg = msg
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- }).catch(function (err) {
|
|
|
|
- console.log(err);
|
|
|
|
|
|
+ Promise.all([getConf(),getMRInfo()]).then(([res1,res2])=>{
|
|
|
|
+ const data = res1.data.data&&res1.data.data[0]
|
|
|
|
+ msg = res2.data.data ||{}
|
|
|
|
+ window.msg = msg
|
|
|
|
+ renderPage(data)
|
|
})
|
|
})
|
|
-
|
|
|
|
-}else{
|
|
|
|
|
|
+} else{
|
|
getConf().then(res =>{
|
|
getConf().then(res =>{
|
|
if(res.data.code == '0'){
|
|
if(res.data.code == '0'){
|
|
// const configArr = res.data.data.pushSetList || []
|
|
// const configArr = res.data.data.pushSetList || []
|