fix
This commit is contained in:
@@ -288,9 +288,7 @@ INSERT INTO ...;"
|
||||
<p class="previewTitle">期望结果</p>
|
||||
<SQLDataTable
|
||||
v-if="expectedQuery(s.display)"
|
||||
:columns="
|
||||
expectedQuery(s.display)!.columns.map((name) => ({ name }))
|
||||
"
|
||||
:columns="expectedQuery(s.display)!.columns"
|
||||
:rows="expectedQuery(s.display)!.rows"
|
||||
:total-rows="expectedQuery(s.display)!.total_rows"
|
||||
:truncated="expectedQuery(s.display)!.truncated"
|
||||
|
||||
@@ -333,7 +333,7 @@ function type(status: ProblemStatus) {
|
||||
</p>
|
||||
<template v-if="sqlExpectedQuery">
|
||||
<SQLDataTable
|
||||
:columns="sqlExpectedQuery.columns.map((name) => ({ name }))"
|
||||
:columns="sqlExpectedQuery.columns"
|
||||
:rows="sqlExpectedQuery.rows"
|
||||
:total-rows="sqlExpectedQuery.total_rows"
|
||||
:truncated="sqlExpectedQuery.truncated"
|
||||
|
||||
@@ -77,7 +77,7 @@ export interface SQLDisplay {
|
||||
tables: SQLDisplayTable[]
|
||||
expected:
|
||||
| {
|
||||
columns: string[]
|
||||
columns: SQLDisplayColumn[]
|
||||
rows: (string | number | null)[][]
|
||||
total_rows: number
|
||||
truncated: boolean
|
||||
|
||||
Reference in New Issue
Block a user