mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-19 00:29:49 +00:00
update
This commit is contained in:
parent
8c60fd8400
commit
a562ac8903
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
|||
<br>
|
||||
<a-space>
|
||||
<a-button @click="selectFile">选择图片</a-button>
|
||||
<a-button type="primary" :disabled="!state.binaryFile" @click="flashIt">更新</a-button>
|
||||
<a-button type="primary" :disabled="!state.binaryFile" @click="flashIt">写入</a-button>
|
||||
</a-space>
|
||||
</a-card>
|
||||
</a-spin>
|
||||
|
@ -46,7 +46,6 @@ const selectFile = () => {
|
|||
const blob = new Blob([input.files[0]], { type: 'application/octet-stream' });
|
||||
const file = URL.createObjectURL(blob);
|
||||
const canvas = document.createElement("canvas");
|
||||
canvas.classList.add("mt-3", "mr-3", "border", "shadow-sm");
|
||||
canvas.width = 128;
|
||||
canvas.height = 64;
|
||||
const canvas2 = canvas.cloneNode();
|
||||
|
|
Loading…
Add table
Reference in a new issue