使用 netlify 形式获取 404(VueJs 3 + Vite + VueRouter + Netlify)
P粉564301782
P粉564301782 2023-09-02 15:59:41
0
1
446
<p>我的 ContactView.vue 页面中有此表单 <code>src/views/ContactView.vue</code> : 我想重定向到自定义页面,感谢消息 <code>src/views/SuccessView.vue</code></p> <pre class="brush:php;toolbar:false;"><form name="contact-form" action="/success" method="POST" data-netlify="true" data-netlify-honeypot="bot-field"> <input type="hidden" name="contact-form" value="contact-form" /> <div class="grid md:grid-cols-2 md:gap-6"> <div class="relative z-0 w-full mb-6 group"> <input type="text" name="first_name" id="floating_first_name" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-pine appearance-none focus:outline-none focus:ring-0 focus:border-bubblegum peer" placeholder=" " required /> <label for="first_name" class="peer-focus:font-medium absolute text-sm text-gray-500 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-bubblegum peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">First name</label> </div> <div class="relative z-0 w-full mb-6 group"> <input type="text" name="last_name" id="floating_last_name" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-pine appearance-none focus:outline-none focus:ring-0 focus:border-bubblegum peer" placeholder=" " required /> <label for="last_name" class="peer-focus:font-medium absolute text-sm text-gray-500 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-bubblegum peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Last name</label> </div> </div> <div class=“相对z-0 w-full mb-6组”> <输入类型=“电子邮件”姓名=“电子邮件” id="floating_email"; class=”block py-2.5 px-0 w-full text-sm text-gray-900 bg-透明边框-0 border-b-2 border-pine 外观-none focus:outline-none focus:ring-0 focus :边界-泡泡糖同行”占位符=” ”必填>> <标签=“电子邮件”类=“对等焦点:字体中绝对文本-sm文本灰色-500持续时间-300变换-翻译-y-6缩放-75顶部-3-z-10原点-[0]对等焦点:左-0peer-focus:text-bubblegumpeer-placeholder-shown:scale-100peer-placeholder-shown:translate-y-0peer-focus:scale-75peer-focus:-translate-y-6>>电子邮件地址
<div class=“相对z-0 w-full mb-6组”>
热门专题
更多>
热门文章
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!