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 }, //停止接单保证金