上传前先登录

This commit is contained in:
2022-07-25 16:29:05 +08:00
parent ef10d0bf0f
commit 3e1fae2183
5 changed files with 72 additions and 2 deletions

View File

@ -180,6 +180,40 @@
</tr>
</tbody>
</table>
<table class="upload-config">
<thead>
<tr>
<td colspan="2">上传配置Alpha</td>
</tr>
</thead>
<tbody>
<tr>
<td>视频标题Pattern</td>
<td>{{ config.video.title }}</td>
</tr>
<tr>
<td>视频描述</td>
<td>{{ config.video.desc }}</td>
</tr>
<tr>
<td>视频分区</td>
<td>{{ config.video.tid }}</td>
</tr>
<tr>
<td>视频标签</td>
<td>{{ config.video.tags }}</td>
</tr>
<tr>
<td>上传人</td>
<td><a :href="'https://space.bilibili.com/'+collector.uploader.mid">{{ collector.uploader.mid }}</a></td>
</tr>
<tr>
<td>登录时间</td>
<td>{{ collector.upload.login_at }}(于{{ collector.upload.expires }}秒后过期)</td>
</tr>
</tbody>
</table>
</div>
{% endraw %}
</body>
@ -225,6 +259,11 @@
},
living: false
},
uploader: {
mid: 0,
expires: 0,
login_at: 0,
},
},
config: {
danmaku: {
@ -265,6 +304,11 @@
}).then((response) => {
this.collector.basic = response.data;
})
axios({
url: "/api/biliuploader/"
}).then((response) => {
this.collector.uploader = response.data;
})
axios({
url: "/api/config/"
}).then((response) => {