fix(系统设置): 个人信息填写第三方账号页面保存问题

--bug=1018842 --user=李玉号 【系统设置】个人信息-第三方账号-输入tapd昵称-点击确定无反应
https://www.tapd.cn/55049933/s/1276547
This commit is contained in:
shiziyuan9527 2022-10-25 16:01:02 +08:00 committed by lyh
parent 686ad7d2df
commit 21d1c1e57b
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div v-loading="loading">
<el-tabs v-model="activeIndex"> <el-tabs v-model="activeIndex">
<el-tab-pane v-if="hasPermission('PERSONAL_INFORMATION:READ+EDIT')" name="commons.personal_setting" <el-tab-pane v-if="hasPermission('PERSONAL_INFORMATION:READ+EDIT')" name="commons.personal_setting"
:label="$t('commons.personal_setting')" :label="$t('commons.personal_setting')"
@ -55,7 +55,7 @@ import JiraUserInfo from "./JiraUserInfo";
import AzureDevopsUserInfo from "./AzureDevopsUserInfo"; import AzureDevopsUserInfo from "./AzureDevopsUserInfo";
import {getIntegrationService} from "../../api/workspace"; import {getIntegrationService} from "../../api/workspace";
import {useUserStore} from "@/store"; import {useUserStore} from "@/store";
import {handleAuth as _handleAuth,getUserInfo, getWsAndPj} from "../../api/user"; import {handleAuth as _handleAuth, getUserInfo, getWsAndPj, updateInfo} from "../../api/user";
const userStore = useUserStore(); const userStore = useUserStore();
@ -95,6 +95,7 @@ export default {
azureDevopsPat: '' azureDevopsPat: ''
}, },
result: {}, result: {},
loading: false,
workspaceList: [], workspaceList: [],
projectList: [] projectList: []
} }
@ -184,7 +185,7 @@ export default {
let param = {}; let param = {};
Object.assign(param, this.form); Object.assign(param, this.form);
param.platformInfo = JSON.stringify(this.form.platformInfo); param.platformInfo = JSON.stringify(this.form.platformInfo);
this.result = this.$post(this.updatePath, param, response => { this.loading = updateInfo(param).then(response => {
this.$success(this.$t('commons.modify_success')); this.$success(this.$t('commons.modify_success'));
userStore.$patch(response); userStore.$patch(response);
this.$emit('closeDialog', false); this.$emit('closeDialog', false);