Skip to content

Commit

Permalink
fix: delete iteration err
Browse files Browse the repository at this point in the history
  • Loading branch information
贾志伟 committed Apr 8, 2024
1 parent 1d1eaae commit af0ca0f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@easily-tools/mock-server-web",
"version": "1.0.2",
"version": "1.0.3",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const handleDeleteIterationTag = (tag: any) => {
if(!newIterationList.includes(param.value.iteration)) {
param.value.iteration = '';
}
componentEvent('iterationListChange', iterationList.value);
componentEvent('iterationListChange', newIterationList);
};
watch(() => props.mockFromRequest, (value) => {
Expand Down
2 changes: 0 additions & 2 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ const handleMockItemSceneOperation = async (operation: string, mockItemBasicInfo
// 保存场景
const handleSaveSceneItem = async (isCloseCodeEditor = false) => {
console.log('some00000000', {...currentEditingSceneItem.value, mockItemId: currentEditingMockItemBaseInfo.value.id})
const res = await saveSceneItem({
...currentEditingSceneItem.value,
mockItemId: currentEditingMockItemBaseInfo.value.id,
Expand All @@ -258,7 +257,6 @@ const handleSaveSceneItem = async (isCloseCodeEditor = false) => {
ElMessage.success(`${t('global.save')}: ${t('global.success')}`);
const item = res.data.find((item: any) => item.id === currentEditingSceneItem.value.id);
if (item) {
console.log('some-----', res);
currentEditingSceneItem.value = item;
}
if (isCloseCodeEditor) {
Expand Down

0 comments on commit af0ca0f

Please sign in to comment.