Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Aug 14, 2024
1 parent 6ce8552 commit c31175b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const useUserStore = defineStore$('user', () => {
}
})

// is equivalent to:
// convert to:
export const useUserStore = defineStore('user', () => {
let token = $ref('')
function login() {
Expand All @@ -135,27 +135,27 @@ import { useBase64 } from '@vueuse/core'
import { useUserStore } from '~/store/user'
const { token, login } = $toRefs(useUserStore())
// is equivalent to:
// convert to:
const { token, login } = $(toRefs(useUserStore()))
login()
const text = $inject$('text', token)
// is equivalent to:
// convert to:
const text = $(inject('text', $$(defaultText)))
const { base64 } = $useBase64$(text)
// is equivalent to:
// convert to:
const { base64 } = $(useBase64($$(text)))
provide$('base64', base64)
// is equivalent to:
// convert to:
provide('base64', $$(base64))
const stop = watch$(base64, () => {
console.log$(base64)
stop()
})
// is equivalent to:
// convert to:
const stop = watch($$(base64), () => {
console.log($$(base64))
stop()
Expand All @@ -164,7 +164,7 @@ const stop = watch($$(base64), () => {
defineExpose$({
base64,
})
// is equivalent to:
// convert to:
defineExpose({
base64: $$(base64),
})
Expand All @@ -180,9 +180,9 @@ defineExpose({
"vueCompilerOptions": {
"plugins": ["unplugin-vue-reactivity-function/volar"],
"reactivityFunction": {
"ignore": ["$fetch"]
}
}
"ignore": ["$fetch"],
},
},
}
```

Expand Down

0 comments on commit c31175b

Please sign in to comment.