Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
前端:页面首次挂载执行handleSearch
  • Loading branch information
4linuxfun committed Jan 25, 2024
commit 18ccd869e30990124d9eb4f544b63fc55308f3d1
5 changes: 4 additions & 1 deletion www/src/views/system/roles/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
</script>
<script setup>
import {reactive, ref, watch} from 'vue'
import {reactive, ref, watch, onMounted} from 'vue'
import {Search, RefreshRight, Plus} from '@element-plus/icons-vue'
import {GetRoles, DeleteRole} from '@/api/roles'
import usePagination from '@/composables/usePagination'
Expand Down Expand Up @@ -129,6 +129,9 @@
roleDialogRef.value.add()
}

onMounted(() => {
handleSearch()
})
</script>
<style lang="">

Expand Down
5 changes: 4 additions & 1 deletion www/src/views/system/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<script setup>
import {
reactive,
ref, watch
ref, watch, onMounted
} from 'vue'
import {
Edit, Delete, Unlock,
Expand Down Expand Up @@ -161,6 +161,9 @@
}
})

onMounted(() => {
handleSearch()
})
</script>

<style>
Expand Down