Skip to content

Commit

Permalink
chore: use ts in components
Browse files Browse the repository at this point in the history
  • Loading branch information
LaicZhang committed Apr 22, 2022
1 parent 0591971 commit e502707
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/bread-crumbs/c-bread-crumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
</div>
</template>

<script setup>
import { defineComponent, reactive, ref, watchEffect } from 'vue'
<script setup lang="ts">
import { ref, watchEffect } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const matched = ref([])
const matched: any = ref([])
watchEffect(() => {
matched.value = route.matched
})
Expand Down
4 changes: 2 additions & 2 deletions src/components/info/pushdeer-alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
<!-- <p>https://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容</p> -->
</template>

<script setup>
<script setup lang="ts">
import store from '@/store'
const baseCdnUrl = store.state.BASE_CDN_URL
const baseCdnUrl: string = store.state.BASE_CDN_URL
</script>

Expand Down

1 comment on commit e502707

@vercel
Copy link

@vercel vercel bot commented on e502707 Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.