fix(frontend): CI vue-tsc -b 三处类型错(live List重复import/paper List initial_capital可空/组合净值series宽类型);本地改用 -b 模式校验对齐CI [nas]
This commit is contained in:
@@ -99,7 +99,7 @@ function renderEquity(): void {
|
||||
const base = equityCurve.value[0]?.equity || 1
|
||||
const values = equityCurve.value.map((p) => p.equity / base)
|
||||
const hasBench = benchmarkCurve.value.length === equityCurve.value.length
|
||||
const series: EChartsCoreOption['series'] = [
|
||||
const series: Array<Record<string, unknown>> = [
|
||||
{
|
||||
type: 'line', name: '策略净值', smooth: true, showSymbol: false,
|
||||
lineStyle: { color: '#c23531', width: 1.6 },
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ref, reactive, computed, onMounted, onUnmounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
|
||||
@@ -127,7 +127,7 @@ function openEdit(a: PaperAccount): void {
|
||||
} catch {
|
||||
editForm.symbols = syms
|
||||
}
|
||||
editForm.initial_capital = a.initial_capital
|
||||
editForm.initial_capital = a.initial_capital ?? 0
|
||||
editVisible.value = true
|
||||
}
|
||||
async function saveEdit(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user