Commit 957bc5fe authored by jiangqihao's avatar jiangqihao

首次登录bug修改

parent f11d980c
......@@ -18,7 +18,7 @@
</form-title>
<ele-table
ref="eleTable"
:multiple="false"
:multiple="true"
:listeners="tableListeners"
v-bind="tableConfig"
:expand-params="expandParams"
......
......@@ -249,7 +249,7 @@ export default {
},
created() {
localStorage.removeItem('USERINFO')
this.userInfo = JSON.parse(localStorage.getItem('CEINFO'))
// this.userInfo = JSON.parse(localStorage.getItem('CEINFO'))
// window.addEventListener('storage', this.afterQRScan)
},
mounted() {
......@@ -290,7 +290,7 @@ export default {
const start = JSON.parse(localStorage.getItem('CEINFO')).ExtIsFistTime_SDK ? true : false
console.log(start)
if (start) {
this.$confirm('首次登请修改密码', '提示', {
this.$confirm('首次登请修改密码', '提示', {
confirmButtonText: '确定',
showClose: false,
showCancelButton: false,
......@@ -327,7 +327,7 @@ export default {
this.loading = true
if (this.$refs.form.$refs.NewPassword[0].value === this.$refs.form.$refs.AgainPassword[0].value) {
const formData = this.formData
formData.ObjectID = this.userInfo.ObjectID
formData.ObjectID = JSON.parse(localStorage.getItem('CEINFO')).ObjectID
console.log(formData)
const formNewData = {
objectID: formData.ObjectID,
......@@ -335,7 +335,7 @@ export default {
newPassword: formData.NewPassword
}
this.$request(employee.updateUrl, formNewData).then(() => {
localStorage.setItem('USERINFO', JSON.stringify(this.userInfo))
localStorage.setItem('USERINFO', JSON.stringify(JSON.parse(localStorage.getItem('CEINFO'))))
localStorage.removeItem('CEINFO')
// console.log("登入成功")
this.loading = false
......@@ -343,8 +343,8 @@ export default {
this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
})
} else {
this.$message.error('确认密码出错!!')
this.loading = false
this.$message.error('确认密码出错!!')
}
},
......
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