方式一:
<form autocomplete="off" @submit.prevent="onSubmit"> <input type="text" /> </form>
methods: { onSubmit(){return false;} }
方式二(当使用UI框架时):
<Form autocomplete="off" v-on:submit.native="onSubmit"> <Input type="text" /> </Form>
methods: {
onSubmit(e){
e.preventDefault();
}
}