Jump to content

Search the Community

Showing results for tags 'vuerouter'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Mans
    • Linux
    • Windows
  • Coding
    • Php
    • Golang
    • JavaScript | Node.js
    • Python|Ruby
    • C|C++|C#
    • Other
    • DataBases
  • Underground
    • Security and its research
    • Hack Tools
    • Social engineering
    • Phreaking
    • TV
    • Spam
    • For beginners
  • Games
    • Generals
  • Other
    • News
    • Creative and Design
    • The Internet
    • SEO
    • Freebie
    • Training courses
    • Video Tutorials
    • Trading floor
    • Verstka
    • Talker
  • k0d.biz
    • Contests
    • Questions, comments and more
    • Site and forum news
    • Violations, complaints

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. При работе с "Vue-router + использование Nginx(как входную точку)" могут быть проблемы, вида 404 по некоторым адресам, которые в действительности существуют. В частности как пример: /*************** * ROUTER */ import VueRouter from "vue-router"; Vue.use(VueRouter); Vue.component('app_main', require("./components/app/main.vue").default); Vue.component('app_view', require("./components/app/view.vue").default); Vue.component('app_edit', require("./components/app/edit.vue").default); const Main = { template: "<app_main></app_main>" }; const View = { template: "<app_view></app_view>" }; const Edit = { template: "<app_edit></app_edit>" }; const routes = [ { path: '/', component: Main }, { path: '/view', component: View }, { path: '/edit', component: Edit }, //! Тут ]; const router = new VueRouter({ mode: 'history', scrollBehavior: function(to, from, savedPosition) { if (to.hash) { return {selector: to.hash} } else { return { x: 0, y: 0 } } }, routes // сокращённая запись для `routes: routes` }); /** * END ROUTER *******************/ И всё бы ништяк, но при переходе на /edit выкидывает на 404. Решение: В nginx конфиге по проекту: location / { try_files $uri $uri/ /index.html; }
×
×
  • Create New...