refactor(frontend): remove $i

This commit is contained in:
syuilo
2023-04-01 13:52:07 +09:00
parent 7a8a756789
commit f16a7cbcf2
22 changed files with 34 additions and 19 deletions

View File

@@ -17,6 +17,7 @@ import * as os from '@/os';
import { PostBlock } from '@/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator';
import { defaultStore } from '@/store';
import { $i } from '@/account';
export default defineComponent({
components: {
@@ -55,7 +56,7 @@ export default defineComponent({
canvas.toBlob(blob => {
const formData = new FormData();
formData.append('file', blob);
formData.append('i', this.$i.token);
formData.append('i', $i.token);
if (defaultStore.state.uploadFolder) {
formData.append('folderId', defaultStore.state.uploadFolder);
}