The project that Vue frame writes, how to realize bogus static state gracefully?

If inscribe, if use Vue,realize individual gain for instance guest, if network address is

Https://my.blog/artical/32

Look of bald very ugly, if fine adds.html, become

Https://my.blog/artical/32.html

Those who confuse look much more comfortable.

I know Vue-router can come true capture suffixal, for instance in this example if want to capture,32.html is simpler, if such word uses a kind of deformed implementation means, whether is judging string fine first for instance.html, again before 32 cut into parts come out, request back end data again, jump otherwise turn 404, appear to be able to realize bogus static state really.

Want to know Vue has what be born formerly, other perhaps more gracious implementation way? This method feels too ugly

Related Posts

One thought on “The project that Vue frame writes, how to realize bogus static state gracefully?

  1. The URL of Nginx rescripts can assume the function with suffixal take out, will give application the service without suffixal request transmit next.

Leave a Reply

Your email address will not be published. Required fields are marked *