路由缓存问题、初次登录、系统内密码修改

This commit is contained in:
zhaoxiao
2021-10-11 12:00:31 +08:00
parent 34be7fae21
commit a5fb8026bf
8 changed files with 191 additions and 132 deletions
+4 -2
View File
@@ -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 {