fix: browser log (#399)

This commit is contained in:
Starry
2024-06-04 08:51:43 +08:00
committed by GitHub
parent 5419a69700
commit c35bdce399
5 changed files with 12 additions and 6 deletions

View File

@@ -21,7 +21,6 @@ limitations under the License. -->
:class="['log', ['message', 'stack'].includes(item.label) ? 'max-item' : '']"
>
<span v-if="item.label === 'time'">{{ dateFormat(data.time) }}</span>
<span v-else-if="item.label === 'errorUrl'">{{ data.pagePath }}</span>
<el-tooltip v-else :content="data[item.label] || '-'">
<span>
{{ data[item.label] || "-" }}

View File

@@ -74,8 +74,8 @@ export const BrowserLogConstants = [
value: "serviceVersion",
},
{
label: "errorUrl",
value: "errorPage",
label: "pagePath",
value: "pagePath",
},
{
label: "time",
@@ -87,6 +87,10 @@ export const BrowserLogConstants = [
// drag: true,
method: 350,
},
{
label: "errorUrl",
value: "errorUrl",
},
{
label: "stack",
value: "stack",