在提交表單的時候,需要阻止默認(rèn)行為
RegContent組件
<Button long @click.native.prevent="submit" :disabled="!gtValidate" size="large" >
{{gtValidate?"同意條款并注冊":"請先進(jìn)行驗(yàn)證"}}
</Button>
在路由的時候看到了一個路由配置的時候的阻止默認(rèn)事件
route.js
{path:'/RegContent',
component: _ =>import('src/views/RegContent'),
meta: {allowBack:false }// 阻止瀏覽器默認(rèn)行為返回
},