添加登录参数

ui1
yujialong 3 years ago
parent 63c38dbe86
commit d77081cf16
  1. 4
      src/pages/account/login/index.vue
  2. 5
      src/store/modules/user.js

@ -70,9 +70,7 @@ export default {
account: 'admin', account: 'admin',
password: '111aaa', password: '111aaa',
random: '', random: '',
code: '', code: ''
type: 2, // 0-> 1-> 2->
platform: Setting.platformId, // id(1. 2. 3.)
}, },
rules: { rules: {
account: [{ required: true, message: '请输入账号', trigger: 'blur' }], account: [{ required: true, message: '请输入账号', trigger: 'blur' }],

@ -38,9 +38,10 @@ export default {
account, account,
password, password,
code, code,
platform: Setting.platformId,
random, random,
distinguish distinguish,
type: 2, // 平台端区分:0->教师端 1->学生端 2->无端
platform: Setting.platformId, // 所属平台id(1.职站 2.数据平台 3.中台)
}).then(res => { }).then(res => {
if(res.status == 200){ if(res.status == 200){
commit('SET_CUSTOMER',res.data.customer) commit('SET_CUSTOMER',res.data.customer)

Loading…
Cancel
Save