路由缓存问题、初次登录、系统内密码修改
This commit is contained in:
@@ -150,10 +150,11 @@ import { mapActions } from 'vuex'
|
||||
import { timeFix } from '@/utils/util'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { postAction, getAction } from '@/api/manage'
|
||||
import { getAction } from '@/api/manage'
|
||||
import { getRSAPublicKey } from '@/api/login.js'
|
||||
import { JSEncrypt } from 'jsencrypt'
|
||||
import { phoneReg } from '@/utils/validate'
|
||||
import { phoneLogin } from '@/api/login.js'
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
@@ -253,7 +254,7 @@ export default {
|
||||
httpFunction = that.Login
|
||||
}
|
||||
httpFunction(loginParams).then((response) => {
|
||||
if (response.message.indexOf('updatePassword') > -1) {
|
||||
if (response.message === 'updatePassword') {
|
||||
this.$notification['error']({
|
||||
message: '设置密码',
|
||||
description: '初次登录需要设置密码',
|
||||
@@ -263,6 +264,7 @@ export default {
|
||||
path: '/user/alteration',
|
||||
query: {
|
||||
isFirstLogin: 'true',
|
||||
userInfo: JSON.stringify(response)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user