xuxueyang
2024-07-12 c58aff5b2a349c6b1fc8a4a3f474f7f8cc529e09
mixin/mixin.js
@@ -13,7 +13,7 @@
            return state.hasLogin || false
         },
         selftype: state => {
            return state.type || ''
            return (state.currentInfo || {}).type || ''
         },
         currentInfo: state => {
            return state.currentInfo || {}
@@ -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() {