PoliWen
PoliWen
### Describe the bug ``` javascript const { data, onFetchError, } = await useFetch(url).post(formData, 'formData').json() ``` when I use formData, how can I set multipart/form-data? The error info is: The...
``` javascript AntDesignVueResolver({ importStyle: 'less' }) ``` ``` javascript import { message } from 'ant-design-vue' message.success(‘上传图片成功’) ``` Appears at the bottom of the page and the style is missing. 
```vue import { ref } from "vue" /** * Implement a custom directive * Create a two-way binding on a form input element * */ const VOhModel = { mounted(el,...
```vue import { ref } from "vue" const state = ref(false) /** * Implement the custom directive * Make sure the input element focuses/blurs when the 'state' is toggled *...
```vue import { ref, watch, unref } from "vue" /** * Implement the composable function * Make sure the function works correctly */ function useLocalStorage(key: string, initialValue: any) { const...
```vue import { watch, customRef } from "vue" /** * Implement the function */ function useDebouncedRef(value, delay = 200) { let timer = null return customRef((track, trigger) => ({ get(){...
```vue import {ref,unref} from 'vue' interface UseCounterOptions { min?: number max?: number } /** * Implement the composable function * Make sure the function works correctly */ function useCounter(initialValue =...
```vue import { ref, h } from "vue" /** * Implement a functional component : * 1. Render the list elements (ul/li) with the list data * 2. Change the...
```vue import { ref } from "vue" const count = ref(0) setInterval(() => { count.value++ }, 1000) Make it never change: {{ count }} ```