Browse Source

fix(merchant): fix

yizhiyang 11 months ago
parent
commit
4da2227d9a
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/pageMerchant/storeModule/appointList.vue

+ 4 - 6
src/pageMerchant/storeModule/appointList.vue

@@ -46,19 +46,17 @@ export default {
       list: {},
       list: {},
     };
     };
   },
   },
-  onShow() {
+  created() {
     let { merchant } = this.$store.state.data.merchantInfo;
     let { merchant } = this.$store.state.data.merchantInfo;
     this.list = merchant;
     this.list = merchant;
-
-    setTimeout(() => {
-      this.getAppointList();
-    }, 300);
+  },
+  mounted() {
+    this.getAppointList();
   },
   },
 
 
   methods: {
   methods: {
     async getAppointList() {
     async getAppointList() {
       let result = Object.assign({}, { ...this.params }, { merchantId: this.list.id });
       let result = Object.assign({}, { ...this.params }, { merchantId: this.list.id });
-      console.log(result, '0000000');
       let res = await getAppointListApi({ ...result });
       let res = await getAppointListApi({ ...result });
 
 
       if (res.code === 'OK') {
       if (res.code === 'OK') {