Tang преди 3 години
родител
ревизия
d9a5316da6
променени са 1 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. 7 2
      src/views/Marketing/order/offlineOrder/orderChargeInfo/bodyBox.vue

+ 7 - 2
src/views/Marketing/order/offlineOrder/orderChargeInfo/bodyBox.vue

@@ -121,6 +121,7 @@ export default {
      * 选中
      */
     activeUser(item) {
+      this.activeName = "";
       this.active = `${item.userId}-${item.goodsId}`;
       this.goodsId = item.goodsId;
       this.orderSn = item.orderSn;
@@ -128,9 +129,13 @@ export default {
       this.userId = item.userId;
       this.orderFrom = item.orderFrom;
       if (this.$route.query.pageName) {
-        this.activeName = this.$route.query.pageName;
+        setTimeout(() => {
+          this.activeName = this.$route.query.pageName;
+        }, 30);
       } else {
-        this.activeName = "first";
+        setTimeout(() => {
+          this.activeName = "first";
+        }, 30);
       }
     },
     /**