From af1f9e92116c6b9c7309eeea830a718ff6014d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Wed, 27 May 2026 16:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=81=9A=E5=B8=82=E5=95=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 4 ++-- src/views/order/position/options.ts | 4 ++-- src/views/profile/business/index.vue | 5 ++++- src/views/profile/business/options.ts | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index bc8c1f0..8bc9d19 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -109,12 +109,12 @@ const responseInterceptor = (response: AxiosResponse removeStorage('userInfo') removeStorage('menusInfo') removeStorage('permissionsInfo') - router.push({ name: 'Login' }) + router.push('/user/login') break case -101: data.msg = 'token错误!' removeStorage('token') - router.push({ name: 'Login' }) + router.push('/user/login') break default: break; diff --git a/src/views/order/position/options.ts b/src/views/order/position/options.ts index 28d4d82..bb6fd9f 100644 --- a/src/views/order/position/options.ts +++ b/src/views/order/position/options.ts @@ -20,9 +20,9 @@ export const tableColumns = [ // 手数 { prop: 'lots', label: '手数', isNumber: true ,width: '140px'}, // 买入价格 - { prop: 'entryPrice', label: '买入价格', isNumber: true ,width: '140px'}, + { prop: 'entryPrice', label: '买入价格' ,width: '140px'}, // 当前价格 - { prop: 'currentPrice', label: '当前价格', isNumber: true,width: '140px' }, + { prop: 'currentPrice', label: '当前价格' ,width: '140px' }, // 止盈 { prop: 'takeProfit', label: '止盈', isNumber: true,width: '140px' }, // 止损 diff --git a/src/views/profile/business/index.vue b/src/views/profile/business/index.vue index 84ce347..bb8687b 100644 --- a/src/views/profile/business/index.vue +++ b/src/views/profile/business/index.vue @@ -260,7 +260,10 @@ const transactionStore = useTransactionStore() */ const getMarketFloatProfit = (accountId: string | number): string => { const profit = transactionStore.marketFloatProfitMap.get(String(accountId)) - return profit || '--' + if (!profit) return '--' + const parts = profit.split('.') + if (parts.length === 1) return profit + '.00' + return parts[0] + '.' + (parts[1] + '00').slice(0, 2) } /** diff --git a/src/views/profile/business/options.ts b/src/views/profile/business/options.ts index 1f3e7ba..2700186 100644 --- a/src/views/profile/business/options.ts +++ b/src/views/profile/business/options.ts @@ -23,7 +23,7 @@ export const marketTableColumns = [ { label: '手机号', prop: 'mobile', align: 'center' as const, width: '140px' }, { label: '风险率', prop: 'ratio', align: 'center' as const, width: '120px' }, //基本账户 - { label: '基本账户', prop: 'basicAccount', align: 'center' as const, width: '200px' }, + { label: '基本账户', prop: 'basicAccount', align: 'center' as const, isNumber: true , width: '200px' }, //保证金 { label: '保证金', prop: 'margin', align: 'center' as const, width: '200px', isNumber: true }, //停止接单保证金