Commit e1e14a27 by wangyalan-git

生成二维码,扫描二维码,登录

parent acfdc1a0
module.exports = { module.exports = {
presets: [ presets: [
'@vue/cli-plugin-babel/preset', '@vue/cli-plugin-babel/preset'
'es2015'
], ],
plugins: [ plugins: [
[ [
......
...@@ -31,14 +31,14 @@ export default { ...@@ -31,14 +31,14 @@ export default {
mounted () { mounted () {
this.jobNo = this.$route.query.jobNo this.jobNo = this.$route.query.jobNo
this.ticket = this.$route.query.ticket this.ticket = this.$route.query.ticket
this.getToken() // this.getToken()
// this.getTicketLogin() this.getTicketLogin()
}, },
methods: { methods: {
getToken () { getToken () {
this.$store.dispatch('Login', { jobNo: this.$route.query.jobNo }).then(() => { this.$store.dispatch('Login', { jobNo: this.$route.query.jobNo }).then(() => {
this.$store.dispatch('GetUserInfo').then(res => { this.$store.dispatch('GetUserInfo').then(res => {
res.data.accouuntType = 0 // res.data.accouuntType = 0
this.userInfo = res.data this.userInfo = res.data
console.log('userInof', this.userInfo) console.log('userInof', this.userInfo)
}).catch(() => { }).catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment