fix: 个人信息界面内的取消按钮点击无效

【个人信息界面内的取消按钮点击无效】https://www.tapd.cn/33805590/bugtrace/bugs/view?bug_id=1133805590001008405
This commit is contained in:
shiziyuan9527 2021-12-01 10:43:43 +08:00 committed by shiziyuan9527
parent 49529e9e23
commit 9eadbc68c1
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
<ms-main-container> <ms-main-container>
<ms-person-from-setting v-if="activeIndex==='commons.personal_setting'" :form = form @getPlatformInfo = "getPlatformInfo" @cancel = "cancel" /> <ms-person-from-setting v-if="activeIndex==='commons.personal_setting'" :form = form @getPlatformInfo = "getPlatformInfo" @cancel = "cancel" />
<ms-api-keys v-if="activeIndex==='commons.api_keys'"/> <ms-api-keys v-if="activeIndex==='commons.api_keys'"/>
<password-info v-if="activeIndex==='change_password'" :rule-form = "ruleForm"></password-info> <password-info v-if="activeIndex==='change_password'" :rule-form = "ruleForm" @cancel="cancel"></password-info>
<el-form v-if="activeIndex==='third_account'"> <el-form v-if="activeIndex==='third_account'">
<jira-user-info @auth="handleAuth" v-if="hasJira" :data="currentPlatformInfo"/> <jira-user-info @auth="handleAuth" v-if="hasJira" :data="currentPlatformInfo"/>
<tapd-user-info @auth="handleAuth" v-if="hasTapd" :data="currentPlatformInfo"/> <tapd-user-info @auth="handleAuth" v-if="hasTapd" :data="currentPlatformInfo"/>

View File

@ -54,7 +54,7 @@ export default {
}, },
methods:{ methods:{
cancel() { cancel() {
return this.$emit("cancel");
}, },
confirm() { confirm() {
this.$emit("confirm"); this.$emit("confirm");

View File

@ -108,7 +108,7 @@ export default {
return getCurrentUser(); return getCurrentUser();
}, },
cancel() { cancel() {
this.$emit("cancel");
}, },
updateUser(updateUserForm) { updateUser(updateUserForm) {
this.$refs[updateUserForm].validate(valid => { this.$refs[updateUserForm].validate(valid => {