Skip to content

Commit

Permalink
fix: correct version list type
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jan 5, 2022
1 parent c903387 commit 6783a23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/windows/main/pages/ExportLocalVersionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,22 @@
</template>

<script lang=ts>
import { defineComponent, reactive, computed, toRefs, ref, watch } from '@vue/composition-api'
import { defineComponent, ref, watch } from '@vue/composition-api'
import type { ResolvedVersion } from '@xmcl/core'
import { useLocalVersions } from '/@/hooks'
import { required } from '/@/util/props'
import { LocalVersion } from '/@shared/entities/version'
export default defineComponent({
props: {
value: required<LocalVersion[]>(Array),
value: required<ResolvedVersion[]>(Array),
},
setup(props, context) {
const { localVersions, showVersionsDirectory, showVersionDirectory, refreshVersions } = useLocalVersions()
const versions = localVersions
const selected = ref([] as boolean[])
function selectVersion(v: LocalVersion) {
function selectVersion(v: ResolvedVersion) {
context.emit('input', v)
}
function browseVersoinsFolder() {
Expand Down

0 comments on commit 6783a23

Please sign in to comment.