部分问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
cb46f89ee1
commit
f7d01f6ad7
|
|
@ -79,6 +79,12 @@ export const constantRoutes = [
|
||||||
name: 'emailRecompose',
|
name: 'emailRecompose',
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/user-recompose',
|
||||||
|
component: () => import('@/views/email-recompose/index'),
|
||||||
|
name: 'userRecompose',
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/joinVerify',
|
path: '/joinVerify',
|
||||||
component: () => import('@/views/joinVerify/index'),
|
component: () => import('@/views/joinVerify/index'),
|
||||||
|
|
|
||||||
|
|
@ -276,6 +276,14 @@ const actions = {
|
||||||
async logout({ commit, state }) {
|
async logout({ commit, state }) {
|
||||||
try {
|
try {
|
||||||
removeToken() // must remove token first
|
removeToken() // must remove token first
|
||||||
|
let data = {
|
||||||
|
IdentityUserId: zzSessionStorage.getItem('identityUserId')
|
||||||
|
}
|
||||||
|
if (zzSessionStorage.getItem('userId') && zzSessionStorage.getItem('userId') !== 'undefined') {
|
||||||
|
data.UserRoleId = zzSessionStorage.getItem('userId')
|
||||||
|
} else {
|
||||||
|
data.UserRoleId = null
|
||||||
|
}
|
||||||
await loginOut({
|
await loginOut({
|
||||||
UserRoleId: zzSessionStorage.getItem('userId'),
|
UserRoleId: zzSessionStorage.getItem('userId'),
|
||||||
IdentityUserId: zzSessionStorage.getItem('identityUserId'),
|
IdentityUserId: zzSessionStorage.getItem('identityUserId'),
|
||||||
|
|
|
||||||
|
|
@ -206,9 +206,15 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
// 修改成功,请重新登录账号
|
// 修改成功,请重新登录账号
|
||||||
this.$message.success(
|
if (!this.isUpdate) {
|
||||||
this.$t('recompose:message:updatedSuccessfully')
|
this.$message.success(
|
||||||
)
|
this.$t('recompose:message:updatedSuccessfully')
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
this.$message.success(
|
||||||
|
this.$t('recompose:message:updatedSuccess')
|
||||||
|
)
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.logout()
|
this.logout()
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,7 @@ export default {
|
||||||
this.$message.success(this.$t('login:message:login1'))
|
this.$message.success(this.$t('login:message:login1'))
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: `/email-recompose?UserId=${res.BasicInfo.IdentityUserId}&Email=${res.BasicInfo.EMail}&UserName=${res.BasicInfo.UserName}&lang=${this.$i18n.locale}&access_token=${res.JWTStr}&isUpdate=1`,
|
path: `/user-recompose?UserId=${res.BasicInfo.IdentityUserId}&Email=${res.BasicInfo.HiddenEmail}&UserName=${res.BasicInfo.UserName}&lang=${this.$i18n.locale}&access_token=${res.JWTStr}&isUpdate=1`,
|
||||||
})
|
})
|
||||||
}, 500)
|
}, 500)
|
||||||
return
|
return
|
||||||
|
|
@ -377,7 +377,7 @@ export default {
|
||||||
{
|
{
|
||||||
callback: (action) => {
|
callback: (action) => {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: `/email-recompose?UserId=${res.BasicInfo.IdentityUserId}&Email=${res.BasicInfo.EMail}&UserName=${res.BasicInfo.UserName}&lang=${this.$i18n.locale}&access_token=${res.JWTStr}&isUpdate=1`,
|
path: `/user-recompose?UserId=${res.BasicInfo.IdentityUserId}&Email=${res.BasicInfo.HiddenEmail}&UserName=${res.BasicInfo.UserName}&lang=${this.$i18n.locale}&access_token=${res.JWTStr}&isUpdate=1`,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
/>
|
/>
|
||||||
<!-- 分组(EN) -->
|
<!-- 分组(EN) -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="QuestionGroupName"
|
prop="QuestionGroupEnName"
|
||||||
v-if="$i18n.locale === 'en'"
|
v-if="$i18n.locale === 'en'"
|
||||||
:label="$t('trials:readingUnit:qsList:title:groupNameEn')"
|
:label="$t('trials:readingUnit:qsList:title:groupNameEn')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue