wangmengwei 2 周之前
父节点
当前提交
55c6c099db
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 2
      ruoyi-ui/src/api/login.js
  2. 1 1
      ruoyi-ui/src/store/modules/user.js
  3. 2 0
      ruoyi-ui/src/views/zhihuixy/teacher/index.vue

+ 1 - 2
ruoyi-ui/src/api/login.js

@@ -70,7 +70,6 @@ export function getCodeImg(){
 
 
 // 获取短信验证码
-
 export function getCaptcha(id) {
   return request({
     url: '/applet/appForgetPW/' + id,
@@ -120,4 +119,4 @@ export function getTenantList(){
     },
     method: 'get'
   });
-}
+}

+ 1 - 1
ruoyi-ui/src/store/modules/user.js

@@ -107,7 +107,7 @@ const user = {
 		 commit('SET_SCHOOL_ID', res.data.schoolId)
 		 commit('SET_NIKE_NAME', user.nickName)
 		 commit('SET_USERID', user.userId)
-     commit('SET_USERTYPE', user.userType)
+     commit('SET_USERTYPE', user.userId)
 		 commit('SET_TENANTID', user.tenantId)
 
           resolve(res)

+ 2 - 0
ruoyi-ui/src/views/zhihuixy/teacher/index.vue

@@ -162,6 +162,8 @@
    </div>
 
 
+
+
     <!-- 添加或修改注册-老师对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">