update:审核预览报错

This commit is contained in:
2025-11-18 11:59:38 +08:00
parent 7687857883
commit 907dfee553
3 changed files with 12 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="gl-page-content">
<div class="gl-page-content-full page-approval-preview">
<div class="content">
<TaskPool v-if="data.approveType === 1" :data="data" />
<Knowledge v-else-if="data.approveType === 2" :data="data" />
@@ -9,7 +9,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { ref, onMounted, watch } from 'vue';
import { useRoute } from 'vue-router';
import { systemQueryApproveInstanceApi } from '@/api/system/systemApprove';
import TaskPool from './components/taskPool.vue';
@@ -25,6 +25,10 @@ onMounted(() => {
getDetailDataFun();
});
watch(() => route.query, () => {
getDetailDataFun();
}, { deep: true });
const getDetailDataFun = () => {
if (!route.query.processId) {
return;
@@ -46,7 +50,11 @@ const getDetailDataFun = () => {
</script>
<style lang="scss" scoped>
.gl-page-content {
.page-approval-preview {
border: 0;
overflow-y: auto;
.content {
height: 100%;
}
}
</style>