diff --git a/fite.config.js b/fite.config.js index b099740..ad8509f 100644 --- a/fite.config.js +++ b/fite.config.js @@ -26,7 +26,7 @@ export default { // 也可以在页面中直接引入完整的路径, 而不必须在这里声明 imports: { 'es.shim': '//jscdn.ink/es.shim/2.1.0/index.js', - vue: '//jscdn.ink/vue/3.2.47/vue.esm-browser.prod.js', + vue: '//jscdn.ink/vue/latest/vue.esm-browser.prod.js', 'vue-router': '//jscdn.ink/@bytedo/vue-router/4.1.6/vue-router.js', // 这个库被vue-router依赖, 可以注释掉vue-router代码中的 @vue/devtools-api 的引入 // 以达到减少不必须的体积的效果 diff --git a/src/main.js b/src/main.js index bda599a..627b6ac 100644 --- a/src/main.js +++ b/src/main.js @@ -3,9 +3,11 @@ import { createApp } from 'vue' import 'es.shim' import '//jscdn.ink/@bd/ui/latest/form/input.js' import '//jscdn.ink/@bd/ui/latest/form/button.js' +import '//jscdn.ink/@bd/ui/latest/form/checkbox.js' import '//jscdn.ink/@bd/ui/latest/form/switch.js' import '//jscdn.ink/@bd/ui/latest/form/link.js' import '//jscdn.ink/@bd/ui/latest/layer/index.js' +// import 'http://127.0.0.1:8090/dist/layer/index.js' import '//jscdn.ink/@bd/ui/latest/pager/index.js' import '//jscdn.ink/@bytedo/wcui/1.0.12/form/dropdown.js' diff --git a/src/views/request.vue b/src/views/request.vue index beaa646..d7bf383 100644 --- a/src/views/request.vue +++ b/src/views/request.vue @@ -6,6 +6,7 @@ placeholder="请输入开源库的名字" @submit="search" /> + 只显示待审核 @@ -58,7 +59,7 @@ class="pager" layout="prev,pages,next,info" red - @page-change="pageChanged" + @page-changed="pageChanged" :total="total" :page="page" /> @@ -155,7 +156,8 @@ export default { }, pageChanged(ev) { - this.page = ev.detail + this.page = ev.data + console.log('<><><>', this.page) this.fetchPage() },