xuxueyang
2024-07-12 48dd8be3d25e5b6d8bfa57ad757569f470f5ff74
mixin/mixin.js
@@ -259,13 +259,17 @@
         this.page.current = 1
         await this.getList()
      },
      async getList() {
      async getList(type='get') {
         if (this.listApi) {
            this.$message.showLoading()
            const {
               data
            } = await this.$http.request('get', this.listApi, {
            } = await this.$http.request(type, this.listApi, {
               params: {
                  ...this.query,
                  ...this.page
               },
               data:{
                  ...this.query,
                  ...this.page
               }
@@ -292,10 +296,10 @@
         }
      },
      async getMore() {
      async getMore(type='get') {
         if (this.page.total > this.page.current * this.page.size) {
            this.page.current += 1
            await this.getList()
            await this.getList(type)
         }
      },
      backHome() {