try to make redirect work properly

This commit is contained in:
polv committed 2020-12-17 19:09:53 +07:00
1 parent 421133ab85
commit 440ffdb745
2 files changed
+6 -9

No files matched your search

+2 -9
View File
@@ -2,15 +2,8 @@
import Vue from 'vue'
export default Vue.extend({
head() {
return {
meta: [
{
httpEquiv: 'refresh',
content: '0; url=/blog',
},
],
}
middleware: (ctx) => {
ctx.redirect('/blog')
},
})
</script>