From 03043192ddf00f9a36b7454799a9152cd1b50a0b Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:13:45 +0800
Subject: [PATCH] 1

---
 src/views/quotes/components/Search.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/views/quotes/components/Search.vue b/src/views/quotes/components/Search.vue
index 84c48fc..5cde743 100644
--- a/src/views/quotes/components/Search.vue
+++ b/src/views/quotes/components/Search.vue
@@ -3,7 +3,8 @@
     <div class="tradeRecord">
       <van-loading color="#1194F7" class="loading-box" v-if="isLoading" />
       <div class="content">
-        <van-tabs v-model:active="active" class="w-full px-2 box-border" sticky @click="changeType">
+       
+      <van-tabs v-model:active="active" class="w-full px-2 box-border" sticky @click="changeType">
           <van-tab :title="$t('当前委托')" class="text-30">
             <!-- <div class="all-select flex justify-end">
               <div class="select-box flex" @click.stop="isAll = !isAll">
@@ -76,7 +77,10 @@
 
 export default {
   props: {
-
+    invalidState: {
+      type: [String, Number],
+      default: null
+    }
   },
   computed: {
     ...mapGetters('user', ['userInfo']),
@@ -109,7 +113,13 @@
     }
     // this.getCoins()
     this.symbol = this.$route.query.symbol
-    this.active = this.$route.query.selectIndex !== undefined ? +this.$route.query.selectIndex : 0
+    // 如果传入了 invalidState 字段,直接展示历史委托页面
+    if (this.invalidState) {
+      this.active = 1
+      this.type = 'hisorders'
+    } else {
+      this.active = this.$route.query.selectIndex !== undefined ? +this.$route.query.selectIndex : 0
+    }
     this.getOrderList(this.type)
     // this.getCoinPrce(this.symbol)
   },

--
Gitblit v1.9.3