Skip to content

Commit

Permalink
fix: cann't open 'view logs' (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeezQ authored Aug 13, 2022
1 parent 00554e0 commit 489152b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const props = defineProps<{
调用参数
</div>
<div class="h-300px">
<JsonEditor v-model="invokeParams" :line-numbers="false" :height="300" :dark="false" />
<JsonEditor v-model="invokeParams" :line-numbers="false" :height="100" :dark="false" />
</div>
<div v-if="props.invokeRequestId" class="invoke-result">
<div class="title">
Expand All @@ -25,15 +25,15 @@ const props = defineProps<{
</div>
<div v-if="invokeLogs" class="logs">
<div v-for="(log, index) in invokeLogs" :key="index" class="log-item">
<pre>- {{ log }}</pre>
<pre class="text-sm">- {{ log }}</pre>
</div>
</div>
<div class="title" style="margin-top: 20px">
调用结果
<span v-if="props.invokeTimeUsage"> ( {{ props.invokeTimeUsage }} ms )</span>
</div>
<div class="result overflow-auto">
<pre>{{ props.invokeResult }}</pre>
<pre class="text-sm">{{ props.invokeResult }}</pre>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/app/[appid]/cloudfunction/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ async function handleChange(funcId: string, value: any) {
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="操作" align="center" min-width="180">
<el-table-column label="操作" align="center" min-width="200">
<template #default="{ row, $index }">
<el-button type="success" plain size="small" @click="handleShowDetail(row)">
开发
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function setTagViewTitle() {
</el-table-column> -->
<el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width">
<template #default="{ row }">
<el-button size="small" type="primary" @click="handleShowDetail(row)">
<el-button plain size="small" type="primary" @click="handleShowDetail(row)">
查看
</el-button>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function handleDelete(row: any, index: number) {
function showTriggerLogs(row: any) {
router.push({
name: '日志',
name: '日志查询',
query: {
trigger_id: row._id,
},
Expand Down Expand Up @@ -271,13 +271,13 @@ onMounted(async () => {
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="{ row, $index }">
<el-button type="info" @click="showTriggerLogs(row)">
<el-button plain size="small" type="info" @click="showTriggerLogs(row)">
日志
</el-button>
<el-button type="primary" @click="showUpdateForm(row)">
<el-button plain size="small" type="primary" @click="showUpdateForm(row)">
编辑
</el-button>
<el-button v-if="row.status !== 'deleted'" type="danger" @click="handleDelete(row, $index)">
<el-button v-if="row.status !== 'deleted'" plain size="small" type="danger" @click="handleDelete(row, $index)">
删除
</el-button>
</template>
Expand Down

0 comments on commit 489152b

Please sign in to comment.