File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export const useUserStore = defineStore$('user', () => {
115115 }
116116})
117117
118- // is equivalent to:
118+ // convert to:
119119export const useUserStore = defineStore (' user' , () => {
120120 let token = $ref (' ' )
121121 function login() {
@@ -135,27 +135,27 @@ import { useBase64 } from '@vueuse/core'
135135import { useUserStore } from '~/store/user'
136136
137137const { token, login } = $toRefs(useUserStore())
138- // is equivalent to:
138+ // convert to:
139139const { token, login } = $(toRefs(useUserStore()))
140140login()
141141
142142const text = $inject$('text', token)
143- // is equivalent to:
143+ // convert to:
144144const text = $(inject('text', $$(defaultText)))
145145
146146const { base64 } = $useBase64$(text)
147- // is equivalent to:
147+ // convert to:
148148const { base64 } = $(useBase64($$(text)))
149149
150150provide$('base64', base64)
151- // is equivalent to:
151+ // convert to:
152152provide('base64', $$(base64))
153153
154154const stop = watch$(base64, () => {
155155 console.log$(base64)
156156 stop()
157157})
158- // is equivalent to:
158+ // convert to:
159159const stop = watch($$(base64), () => {
160160 console.log($$(base64))
161161 stop()
@@ -164,7 +164,7 @@ const stop = watch($$(base64), () => {
164164defineExpose$({
165165 base64,
166166})
167- // is equivalent to:
167+ // convert to:
168168defineExpose({
169169 base64: $$(base64),
170170})
@@ -180,9 +180,9 @@ defineExpose({
180180 " vueCompilerOptions" : {
181181 " plugins" : [" unplugin-vue-reactivity-function/volar" ],
182182 " reactivityFunction" : {
183- " ignore" : [" $fetch" ]
184- }
185- }
183+ " ignore" : [" $fetch" ],
184+ },
185+ },
186186}
187187```
188188
You can’t perform that action at this time.
0 commit comments