From eb257a16632071469479fd13a93dceddc289d338 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 09 十月 2019 09:43:26 +0800
Subject: [PATCH] 2019-10-09update

---
 src/api/index.js |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index a8d4518..bdfc7bf 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -8,10 +8,10 @@
 
 axios.interceptors.request.use((config) => {
   config.method = 'post'
-  config.headers.token = sessionStorage.getItem('TOKEN') || ''
   if (config.url.includes('LoginAndRedirect')) {
     config.data = qs.stringify(config.data)
   } else {
+    config.headers.token = sessionStorage.getItem('TOKEN') || ''
     config.data = JSON.stringify(config.data)
   }
 
@@ -169,6 +169,21 @@
   }
 
   /**
+   * @description 鑾峰彇椤甸潰閰嶇疆淇℃伅
+   * @param {String} MenuNo 椤甸潰鑿滃崟鍙傛暟
+   */
+  getModelFormData (MenuNo) {
+    return axios({
+      url: '/dostar',
+      data: {
+        func: 'getModelFormData',
+        userid: sessionStorage.getItem('UserID'),
+        MenuNo: MenuNo
+      }
+    })
+  }
+
+  /**
    * @description 鑾峰彇椤甸潰鍒楄〃鏁版嵁
    * @param {String} param 鎻愪氦鍙傛暟
    */

--
Gitblit v1.8.0