update:审核预览bug
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user