找不到Nuxt + Netlify Forms自定义成功页面

JavaScript Vue.js

神无

2020-03-24

I have a simple Form in my Nuxt Project - hosting on Netlify and use the Netlify Forms feature - docs here https://www.netlify.com/docs/form-handling/

  <form
    action="/confirm" name="request" method="post" data-netlify="true" netlify-honeypot="bot-field"
  >
    <p class="hidden">
      <label>Don’t fill this out if you're human: <input name="bot-field" ></label>
    </p>
    <v-text-field
      label="Name"
      name="name"
    />
    ...
    <v-btn
      :disabled="!valid"
      type="submit"
    >send
    </v-btn>
  </form>

If I browse to https://mddomain.com/confirm it works fine.

If I submit the form on the first time I come to the /confirm page but Netlify doesn't safe the data. If i try it again I got this Error Mesage:

Page Not Found Looks like you've followed a broken link or entered a URL that doesn't exist on this site.

Back to our site

What's wrong with my code?

第3584篇《找不到Nuxt + Netlify Forms自定义成功页面》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点

0个回答

问题类别

JavaScript Ckeditor Python Webpack TypeScript Vue.js React.js ExpressJS KoaJS CSS Node.js HTML Django 单元测试 PHP Asp.net jQuery Bootstrap IOS Android