feat(security): remove unnecessary token

This commit is contained in:
InfinityPacer
2024-10-10 15:40:06 +08:00
parent b9ec829747
commit 505773043b
8 changed files with 29 additions and 66 deletions
+1 -7
View File
@@ -1,7 +1,6 @@
<script lang="ts" setup>
import { useToast } from 'vue-toast-notification'
import MediaIdSelector from '../misc/MediaIdSelector.vue'
import store from '@/store'
import api from '@/api'
import { storageOptions } from '@/api/constants'
import { numberValidator } from '@/@validators'
@@ -119,12 +118,7 @@ watch(transferForm, async () => {
// 使用SSE监听加载进度
function startLoadingProgress() {
progressText.value = '请稍候 ...'
const token = store.state.auth.token
progressEventSource.value = new EventSource(
`${import.meta.env.VITE_API_BASE_URL}system/progress/filetransfer?token=${token}`,
)
progressEventSource.value = new EventSource(`${import.meta.env.VITE_API_BASE_URL}system/progress/filetransfer`)
progressEventSource.value.onmessage = event => {
const progress = JSON.parse(event.data)
if (progress) {