search

Home  >  Q&A  >  body text

Vue's history routing, after packaging, combined with thinkphp, how can F5 refresh not report 404?

Add base: '/static' to the front end, which is equivalent to lengthening the route. When forwarding, set /static as the condition and forward it to the index.html packaged by Vue, otherwise it will be forwarded to the thinkphp framework. index.php, the unsatisfactory part: the route is lengthened

Please give me some advice on a better forwarding method

李杰李杰1818 days ago1094

reply all(0)I'll reply

No reply
  • Cancelreply