xuxueyang
2024-07-21 883ca635ebb2df1ccb9e7f6dc19a88c7ad374cb6
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 || {}
@@ -23,6 +23,9 @@
         },
         cache_user: state => {
            return state.currentInfo || {}
         },
         sign: state => {
            return state.sign || {}
         },
         // currentEnId: state=>{
         //    // console.log('currentEnId',state.currentInfo.enId,state.currentInfo)
@@ -259,13 +262,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 +299,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() {