Skip to content

Commit

Permalink
Merge pull request #290 from XPoet/dev
Browse files Browse the repository at this point in the history
perf: simplify the operation after uploaded
  • Loading branch information
XPoet committed Mar 8, 2024
2 parents 89925ef + 2b7b9ce commit 7785dbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/views/upload-image/upload-image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import {
UploadStatusEnum
} from '@/common/model'
import { batchCopyImageLinks, copyImageLink, getOSName } from '@/utils'
import { generateUploadImageObject, starred } from './upload-image.util'
import { generateUploadImageObject } from './upload-image.util'
import { uploadImagesToGitHub, uploadImageToGitHub } from '@/utils/upload-utils'
import UploadImageCard from './components/upload-image-card/upload-image-card.vue'
import SelectedInfoBar from '@/views/upload-image/components/dir-info-bar/dir-info-bar.vue'
Expand All @@ -76,7 +76,6 @@ const instance = getCurrentInstance()
const gettingImagesRef: Ref = ref<null | HTMLElement>(null)
const userConfigInfo = computed(() => store.getters.getUserConfigInfo).value
const userSettings = computed(() => store.getters.getUserSettings).value
const globalSettings = computed(() => store.getters.getGlobalSettings).value
const logoutStatus = computed(() => store.getters.getUserLoginStatus)
Expand Down Expand Up @@ -129,7 +128,6 @@ const afterUploadSuccess = async (uploadedImg: UploadedImageModel[], isBatch: bo
await store.dispatch('SET_USER_CONFIG_INFO', {
viewDir: userConfigInfo.selectedDir
})
await starred(userSettings)
}
// 上传
Expand Down

0 comments on commit 7785dbc

Please sign in to comment.