Browse Source

修改bug0725

asd123a20 2 years ago
parent
commit
5a42b84ce4
3 changed files with 4 additions and 4 deletions
  1. 2 2
      src/components/pagination.vue
  2. 1 1
      src/views/details.vue
  3. 1 1
      src/views/list.vue

+ 2 - 2
src/components/pagination.vue

@@ -26,8 +26,8 @@ export default {
   mounted() {},
   methods: {
     handleCurrentChange(e) {
-      this.currentPage = e > 0 ? e - 1 : 0;
-      this.$emit('query', { paging: { page: this.currentPage, size: this.pageSize } });
+      // this.currentPage = e > 0 ? e - 1 : 0;
+      this.$emit('query', { paging: { page: e > 0 ? e - 1 : 0, size: this.pageSize } });
     },
     resetPage(e) {
       if (e == -1) {

+ 1 - 1
src/views/details.vue

@@ -77,7 +77,7 @@ export default {
     text-align: left;
     white-space: pre-wrap;
     word-wrap: break-word;
-    iframe {
+    ::v-deep iframe {
       width: 70%;
       height: 500px;
       display: block;

+ 1 - 1
src/views/list.vue

@@ -80,7 +80,7 @@ export default {
     },
     topage() {
       const item = this.menusall.find(e => e.code == this.code);
-      if (item.type == '2') {
+      if (item?.type == '2') {
         this.$router.push(`/pages/${item.code}`);
         return false;
       }