Skip to content

Commit

Permalink
chore: 添加案例代码
Browse files Browse the repository at this point in the history
  • Loading branch information
sdmu-gaoqi committed Jan 19, 2024
1 parent 527e1a4 commit e867ad7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/workbench/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponent } from 'vue'
import { App, defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'

const Workbench = defineComponent({
Expand All @@ -11,4 +11,9 @@ const Workbench = defineComponent({
}
})

Workbench.install = function (app: App) {
app.component(Workbench.name, Workbench)
return app
}

export default Workbench

0 comments on commit e867ad7

Please sign in to comment.