Commit 103bd964 authored by Jeff nan's avatar Jeff nan

feat

parent 046c2acc
......@@ -157,7 +157,7 @@
</div>
<div>
<el-alert type="info" :closable="false" show-icon title="点击以下链接可下载或预览对应资源"></el-alert>
<el-table :data="Object.keys(subtitlesResult).map(k => ({ key: k, value: subtitlesResult[k] }))" style="width: 100%; margin-top: 12px;" size="mini" :border="true">
<el-table :data="getSubtitlesResultRows()" style="width: 100%; margin-top: 12px;" size="mini" :border="true">
<el-table-column label="生成资源" width="220">
<template slot-scope="scope">
{{ getSubtitleKeyZh(scope.row.key) }}
......
......@@ -211,6 +211,14 @@ function initVueApp(savedData) {
};
return map[key] || key;
},
// 字幕结果表行(隐藏用量相关字段)
getSubtitlesResultRows() {
const hideKeys = { ai_amount: 1, ai_balance: 1, token_usage: 1 };
const result = this.subtitlesResult || {};
return Object.keys(result)
.filter((k) => !hideKeys[k])
.map((k) => ({ key: k, value: result[k] }));
},
async getAuthKey() {
const resp = await callServerMethod('getAuthKey');
if (resp.msg == 'success') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment