Browse Source

正式代码发布

RaoMeng 6 years ago
parent
commit
7fc097d460

+ 4 - 2
frontend/wechat-web/src/configs/api.config.js

@@ -8,8 +8,10 @@ import store from './../redux/store/store'
  * Desc: 项目接口
  */
 // export const _baseURL = 'https://tmobile.ubtob.com/school'
-// export const _baseURL = 'http://10.1.80.101:8080/school'
-export const _baseURL = 'http://10.1.80.101:9560'
+// export const _baseURL = 'http://10.1.80.101:9560'
+export const _baseURL = 'https://school-api.ubtob.com/api/school'
+// export const _baseURL = 'https://school-api.ubtob.com/api/school/grade/read/1'
+
 export const API = {
     //获取openId
     GET_OPENID: _baseURL + '/wxPay/getOpenid',

+ 3 - 1
frontend/wechat-web/src/redux/reducers/redUserInfo.js

@@ -57,7 +57,9 @@ const initListState = {
     userRole: 0,
     teacher: '',
     parent: '',
-    user: '',
+    user: {
+        student: {}
+    },
 }
 
 const redUserInfo = (state = initListState, action) => {