diff --git a/src/pages/repository/package/index.vue b/src/pages/repository/package/index.vue index 9a957d51a59ce21758253cd8084d243e66b1fc46..2705fa1b39e31a0a1624d57e7788c0e50012f819 100644 --- a/src/pages/repository/package/index.vue +++ b/src/pages/repository/package/index.vue @@ -184,6 +184,16 @@ export default { this.classification = 'all' this.getPackageByPage() }, + changeClassification() { + this.listQuery.page = 1 + this.listQuery.limit = 10 + this.getPackageByPage() + }, + changePackage() { + if (this.packageName === '') { + this.changeClassification() + } + }, getPackageByPage() { const params = { page: this.listQuery.page,