mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
refactor(client): use composition api
This commit is contained in:
parent
5a8a0e5b4d
commit
7db62936e3
1 changed files with 7 additions and 20 deletions
|
@ -4,25 +4,12 @@
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { defineComponent } from 'vue';
|
import { computed } from 'vue';
|
||||||
import * as os from '@/os';
|
|
||||||
|
|
||||||
export default defineComponent({
|
const props = defineProps<{
|
||||||
props: {
|
type: string;
|
||||||
type: {
|
}>();
|
||||||
type: String,
|
|
||||||
required: true,
|
const kind = computed(() => props.type.split('/')[0]);
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
};
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
kind(): string {
|
|
||||||
return this.type.split('/')[0];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue