|
|
@@ -58,8 +58,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { computed, ref } from 'vue';
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
+import { computed, ref, watch } from 'vue';
|
|
|
+import { useRoute, useRouter } from 'vue-router';
|
|
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
|
|
import CommonListBlock, { type DropdownCommonItem } from '@/components/content/CommonListBlock.vue';
|
|
|
import AssessmentContentApi, { type UserAgreementListRow } from '@/api/collect/AssessmentContent';
|
|
|
@@ -69,6 +69,7 @@ import { GROUP_TO_REVIEW_PROGRESS } from './composeables/GroupData';
|
|
|
import { useReview } from './composeables/Review';
|
|
|
|
|
|
const router = useRouter();
|
|
|
+const route = useRoute();
|
|
|
const authStore = useAuthStore();
|
|
|
const listRef = ref<any>(null);
|
|
|
|
|
|
@@ -156,6 +157,10 @@ function handleReview(item: any) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+watch(route, () => {
|
|
|
+ listRef.value?.reload();
|
|
|
+})
|
|
|
+
|
|
|
defineExpose({
|
|
|
reload: () => listRef.value?.reload(),
|
|
|
});
|