Browse Source

feat: 调整返回事件

zhangyuhan 1 year ago
parent
commit
0335ac33fa
1 changed files with 5 additions and 1 deletions
  1. 5 1
      apps/bigmember_pc/src/views/order/components/data-export/info.vue

+ 5 - 1
apps/bigmember_pc/src/views/order/components/data-export/info.vue

@@ -486,7 +486,11 @@ export default {
     ...mapActions('user', ['getUserAccountInfo']),
     // 返回筛选页面
     backToFilter() {
-      history.back()
+      if (history.length === 1) {
+        window.close()
+      } else {
+        history.back()
+      }
     },
     getQuery() {
       const { productId } = this.$route.meta