Commit 3190f929 authored by guxukai's avatar guxukai

wip: 分页demo

parent d376016d
......@@ -14,7 +14,7 @@
</template>
<script lang="ts" setup>
import { PropType, ref, watch } from 'vue'
import { computed, PropType, ref, watch } from 'vue'
import { useRoute } from 'vue-router'
import { useAuth } from '@shared/store/modules/auth'
......@@ -52,9 +52,12 @@ if ($route.name === 'app-market' && authStore.consoleInfo.consoleObjectId === '3
if (props.pageSizeList) {
pageSizeArr.value = props.pageSizeList!
}
watch([props.pageIndex], newVal => {
pageIndex_.value = newVal[0]
})
watch(
computed(() => props.pageIndex),
newVal => {
pageIndex_.value = newVal
},
)
const handleGetTableData = () => {
props.run()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment