No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Travinns
    3. Topics
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 12
    • Best 0
    • Groups 0

    Topics created by Travinns

    • T

      Rotate to landscape mode in pwa
      Help • • Travinns

      3
      0
      Votes
      3
      Posts
      2253
      Views

      T

      That’s it. Thanks. I just removed the orientation so it will use the default phone settings and listen to the orientation lock.

    • T

      [Solved] Empty dialog
      Help • • Travinns

      3
      0
      Votes
      3
      Posts
      232
      Views

      T

      Found it. I was looking at old documentation. I should use prompts now instead of form.

    • T

      [Solved] auth check with firebase
      Help • • Travinns

      11
      0
      Votes
      11
      Posts
      2501
      Views

      S

      Resolved create const Router and export , after Route, use beforeEach with you validate. Saludos desde mexico ❤

      import Vue from 'vue' import VueRouter from 'vue-router' import { isAuth, isAdmin, isUser } from "./auth"; import routes from './routes' Vue.use(VueRouter) const Router = new VueRouter({ mode: process.env.VUE_ROUTER_MODE, base: process.env.VUE_ROUTER_BASE, scrollBehavior: () => ({ y: 0 }), routes }) Router.beforeEach((to,from, next) => { to.matched.some( route =>{ if(route.meta.requiresAuth){ if(!isAuth()){ next({ path: '/' }) } } if(route.meta.requiresAdmin){ if(!isAdmin()){ next({path: '/'}) } } if(route.meta.requiresUser){ if(!isUser()){ next({path: '/'}) } } next() }) }) export default Router