diff --git a/quasar.conf.js b/quasar.conf.js index 7577845..0e337ed 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -62,6 +62,8 @@ module.exports = function (ctx) { 'QPageSticky', 'QInput', 'QSeparator', + 'QChip', + 'QTooltip', ], directives: ['Ripple'], diff --git a/src/pages/VideoList.vue b/src/pages/VideoList.vue index 2a48982..9dfa345 100644 --- a/src/pages/VideoList.vue +++ b/src/pages/VideoList.vue @@ -3,7 +3,7 @@
-
{{video.name}}
+
{{video.name}}
-
{{video.type}}
-
{{ video.last }}
+
+ {{video.name}} + {{video.name}} +
+ {{video.type}} + {{video.last}}
@@ -71,13 +90,16 @@ export default { this.getVideoList(value); }, currentSite() { + this.pagination.page = 1; this.getVideoList(1); }, currentClass() { + this.pagination.page = 1; this.getVideoList(1); }, keyWord(newKeyWord, oldKeyWord) { if (newKeyWord !== oldKeyWord) { + this.pagination.page = 1; this.getVideoList(1); } }, @@ -106,7 +128,7 @@ export default { .then(res => parseStringSync(res.data, { explicitArray: false })) .then((data) => { this.videoList = data.rss.list.video; - this.pagination.total = _toInteger(data.rss.list.$.recordcount); + this.pagination.total = _toInteger(data.rss.list.$.pagecount); }) .catch(console.error) .finally(() => { @@ -130,9 +152,13 @@ export default { }; -