中心调研退出调用接口

This commit is contained in:
2025-12-29 13:11:15 +08:00
parent a48dc114e8
commit 9568186497
3 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -8,7 +8,7 @@
<!-- <TopLang style="position: fixed;top: 40px;right: 40px" /> -->
<div style="display: flex;justify-content: space-between;" v-if="!isPreview">
<div>{{ $t('trials:researchForm:title:researchSurveyStatus') }} <el-tag>{{ $fd('ResearchRecord', state)
}}</el-tag></div>
}}</el-tag></div>
<div>
<!-- 提交 -->
<el-button v-if="(state === 0 && userTypeEnumInt === 0)" type="primary" size="small"
@@ -323,7 +323,8 @@ export default {
this.$emit('refreshPage')
},
// 退出
handleBack() {
async handleBack() {
await this.$store.dispatch('user/logout')
this.$router.push({ path: `/researchLogin?trialId=${this.trialId}&lang=${this.$i18n.locale}` })
},
handleHistory() {
+2
View File
@@ -263,6 +263,8 @@ export default {
this.setLanguage(this.$route.query.lang)
store.dispatch('user/setToken', res.Result.Token)
zzSessionStorage.setItem('TokenKey', res.Result.Token)
zzSessionStorage.setItem('userId', res.Result.UserRoleId);
zzSessionStorage.setItem('identityUserId', res.Result.IdentityUserId);
var permissions = await getUserPermissions()
var menuTree = await getUserMenuTree()
store.dispatch('user/setTree', menuTree.Result)