uni-app Vue3获取input表单数据示例
<template>
<input type="text" placeholder="输入名称查询" v-model="searchKeyword" />
<a-button @click="search">搜索</a-button>
</template>
<script setup>
import { defineComponent, ref, reactive } from 'vue';
import { fetchCategories } from "@/api/toolList";
const searchKeyword = ref(null)
console.log(searchKeyword.value)
})
</script>