Skip to content

Commit

Permalink
fix: fix import and method call
Browse files Browse the repository at this point in the history
  • Loading branch information
SadWood committed Apr 1, 2024
1 parent fadb246 commit 3e52a1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<script setup lang="ts">
import { title } from 'radash'
const router = useRouter()
const routes = router.getRoutes().map(route => ({
name: title(route.name as string),
name: _.title(route.name as string),
path: route.path,
}))
Expand Down
2 changes: 1 addition & 1 deletion src/views/TDesignView.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="tsx" setup>
import type { TableProps } from 'tdesign-vue-next'
MessagePlugin.success(`${dayjs().format('a')}好,TDesign!`)
$message.success(`${dayjs().format('a')}好,TDesign!`)
const percentage = numbro(dayjs().diff(dayjs().startOf('year'), 'day')).divide(dayjs().isLeapYear() ? 366 : 365).multiply(100).format('0.00')
Expand Down

0 comments on commit 3e52a1a

Please # to comment.