update:审核预览bug

This commit is contained in:
2025-11-18 11:59:09 +08:00
parent 5de583b81b
commit 6f4379bf28

View File

@@ -18,6 +18,7 @@
</template>
<script setup lang="ts">
import { watch } from 'vue';
import WujieVue from 'wujie-vue3';
import Cookies from 'js-cookie';
import { SPDM_URL } from '../config';
@@ -41,14 +42,22 @@ const props = withDefaults(defineProps<Props>(), {
processId: '',
});
watch(() => props.processId, () => {
goPreviewFun();
}, { deep: true });
bus.$on('SPMD_LOADED', () => {
goPreviewFun();
});
const goPreviewFun = () => {
bus.$emit('ROUTER_CHANGE', {
path: '/spdm/approvalPreview',
query: {
processId: props.processId,
},
});
});
}
</script>
<style lang="scss" scoped>