Browse Source

fix(merchant): fix

yizhiyang 11 tháng trước cách đây
mục cha
commit
4da2227d9a
1 tập tin đã thay đổi với 4 bổ sung6 xóa
  1. 4 6
      src/pageMerchant/storeModule/appointList.vue

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

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