zhangxc пре 4 година
родитељ
комит
d6418503b7
1 измењених фајлова са 6 додато и 10 уклоњено
  1. 6 10
      src/js/cdssHorizontal.js

+ 6 - 10
src/js/cdssHorizontal.js

@@ -57,17 +57,13 @@ function getPusgWarning(){
 }
 
 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 =>{
     if(res.data.code == '0'){
       // const configArr = res.data.data.pushSetList || []