Skip to content
Snippets Groups Projects
Commit 1b867cc1 authored by syuilo's avatar syuilo
Browse files

refactor(client): use composition api

parent 1622dfcb
No related branches found
No related tags found
No related merge requests found
...@@ -4,25 +4,12 @@ ...@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment