|
@@ -34,7 +34,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import EditMember from './edit.vue'
|
|
|
-import { computed, reactive, watch } from 'vue'
|
|
|
+import { computed, onDeactivated, reactive, toRaw, watch } from "vue";
|
|
|
import { BodyPanlHeader, BodyPanlBody } from '@/layout/panl'
|
|
|
import { usePaging } from '@/hook'
|
|
|
import { router } from '@/router'
|
|
@@ -64,8 +64,11 @@ const params = reactive({
|
|
|
userName: '',
|
|
|
projectId: computed(() => Number(router.currentRoute.value.params.id))
|
|
|
})
|
|
|
-
|
|
|
+onDeactivated(() => {
|
|
|
+ params.userName = ''
|
|
|
+})
|
|
|
const { list, pagination, updateList } = usePaging(fetchMembers, params)
|
|
|
+
|
|
|
watch(
|
|
|
() => params.userName,
|
|
|
() => (pagination.current = 1),
|