Skip to content

Commit

Permalink
fix: 调试任务创建者不是自己问题修复 --ignore
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25007
  • Loading branch information
ywywZhou committed Nov 27, 2024
1 parent e737dd9 commit ffe64ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 6 additions & 5 deletions frontend/src/views/template/TemplateMock/MockExecute/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
</template>

<script>
import { mapActions } from 'vuex';
import { mapActions, mapState } from 'vuex';
import tools from '@/utils/tools';
import TaskParamEdit from './components/TaskParamEdit.vue';
import MockRecode from './components/MockRecode.vue';
Expand All @@ -108,10 +108,6 @@
type: String,
default: '',
},
creator: {
type: String,
default: '',
},
templateId: {
type: [String, Number],
default: '',
Expand Down Expand Up @@ -139,6 +135,11 @@
unMockExpend: false,
};
},
computed: {
...mapState({
creator: state => state.username,
}),
},
created() {
this.loadData();
},
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/template/TemplateMock/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
v-else-if="!templateDataLoading"
ref="mockExecute"
:mock-task-name="mockTaskName"
:creator="creator"
:template-id="templateId"
:selected-nodes="selectedNodes"
:tpl-actions="tplActions"
Expand Down Expand Up @@ -106,7 +105,6 @@
curSelectedNodeId: '',
saveLoading: false,
executeLoading: false,
creator: '',
mockSchemeId: '',
lastSchemeMsg: null,
isShowConditionEdit: false,
Expand Down Expand Up @@ -227,7 +225,6 @@
};
const templateData = await this.loadTemplateData(data);
this.tplActions = templateData.auth;
this.creator = templateData.creator;
this.tplSpaceId = templateData.space_id;
this.setTemplateData(templateData);
this.setSpaceId(templateData.space_id);
Expand Down

0 comments on commit ffe64ee

Please sign in to comment.