Browse Source

fix:user模块修改

chenzhen2 1 year ago
parent
commit
6dc447fff1
2 changed files with 13 additions and 4 deletions
  1. 3 3
      project.config.json
  2. 10 1
      src/api/user.js

+ 3 - 3
project.config.json

@@ -18,9 +18,9 @@
     "checkSiteMap": true,
     "uploadWithSourceMap": true,
     "compileHotReLoad": false,
-    "useMultiFrameRuntime": true,
-    "useApiHook": true,
-    "useApiHostProcess": true,
+    "useMultiFrameRuntime": false,
+    "useApiHook": false,
+    "useApiHostProcess": false,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],

+ 10 - 1
src/api/user.js

@@ -5,6 +5,15 @@ function getCompmayUsers() {
     });
 }
 
+function getUserInfo(params) {
+    return $http({
+      url: '/user/info',
+      method: 'GET',
+      data: JSON.stringify(params)
+    });
+  }
+
 export {
-    getCompmayUsers
+    getCompmayUsers,
+    getUserInfo
 }