Skip to content

Commit

Permalink
fix(frontend): 平台管理单据查看详情跳转逻辑冲突 #8998
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 28907
  • Loading branch information
hLinx authored and zhangzhw8 committed Jan 9, 2025
1 parent 9a2d700 commit 4be6795
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
:max-height="tableMaxHeight"
:pagination="pagination"
:row-class="rowClass"
:row-config="{
useKey: true,
keyField: 'id',
}"
:show-overflow="false"
@filter-change="handleFilterChange"
@page-limit-change="handlePageLimitChange"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
</div>
</template>
<script setup lang="ts">
import { getCurrentInstance, onActivated, onDeactivated } from 'vue';
import { onActivated } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router';
import { useRoute } from 'vue-router';
import TicketModel from '@services/model/ticket/ticket';
import { getTickets } from '@services/source/ticket';
Expand All @@ -57,12 +57,10 @@
type IRowData = TicketModel;
const router = useRouter();
const route = useRoute();
const { t } = useI18n();
const currentInstance = getCurrentInstance();
const { getSearchParams, removeSearchParam } = useUrlSearch();
const { removeSearchParam } = useUrlSearch();
const { value: datePickerValue, shortcutsRange } = useDatePicker();
Expand All @@ -81,20 +79,6 @@
selectTicketId.value = Number(route.query.selectId);
removeSearchParam('selectId');
});
onDeactivated(() => {
setTimeout(() => {
if (currentInstance!.isUnmounted) {
return;
}
router.replace({
params: {
ticketId: selectTicketId.value,
},
query: getSearchParams(),
});
});
});
</script>
<style lang="less">
.ticket-list-table-mode {
Expand Down

0 comments on commit 4be6795

Please sign in to comment.