PoliWen

Results 31 issues of 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. ![image](https://user-images.githubusercontent.com/28656609/176930258-41eda3a3-39c7-42fc-bbf7-f6d1706cc919.png)

```vue import { ref } from "vue" /** * Implement a custom directive * Create a two-way binding on a form input element * */ const VOhModel = { mounted(el,...

answer
zh-CN
26

```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 *...

answer
zh-CN
19

```vue import { ref, watch, unref } from "vue" /** * Implement the composable function * Make sure the function works correctly */ function useLocalStorage(key: string, initialValue: any) { const...

answer
zh-CN
18

```vue import { watch, customRef } from "vue" /** * Implement the function */ function useDebouncedRef(value, delay = 200) { let timer = null return customRef((track, trigger) => ({ get(){...

answer
zh-CN
23

```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 =...

answer
zh-CN
17

```vue import { ref, h } from "vue" /** * Implement a functional component : * 1. Render the list elements (ul/li) with the list data * 2. Change the...

answer
zh-CN
21

```vue import { ref } from "vue" const count = ref(0) setInterval(() => { count.value++ }, 1000) Make it never change: {{ count }} ```

answer
zh-CN
12