My ignorance, must call next() function to process. I think this is just a hook and call before route change
Best posts made by maxxiris
-
RE: [SOLVED] Blank page when using beforeEnter route
Latest posts made by maxxiris
-
RE: [CAN’T BE SOLVED] Android build with proxy server
After testing I find out Ionic CLI is the same quasar, mean proxy just work as a normal reverse proxy on Pc environment.
So I want to confirm that there is NO way to make proxy work with a cordova build atm (not sure if someone make a plugin in future that control xhr call and divert through a native proxy)
-
RE: [CAN’T BE SOLVED] Android build with proxy server
I look around and Ionic has exact the same proxy setting as quasar
https://ionicframework.com/docs/v3/cli/configuring.html#service-proxies
Hope anyone know how to port this to quasar mobile app
-
RE: Hide the 'add file' button in q-uploader
I must agree the layout for q-uploader is not so flexible and take a lot of web space. So I think we must write our own component for uploader to suit our needs.
-
[CAN’T BE SOLVED] Android build with proxy server
This may off-topic of quasar but hope anyone could help
I set proxy server in quasar config.
devServer: { // https: true, // port: 8080, open: true, // opens browser window automatically proxy: { // proxy all requests starting with /api to jsonplaceholder '/api': { target: 'http://localhost/cbccvc_dev/', changeOrigin: true, pathRewrite: { '^/api': '' } } } },
Now with android build, url will not open external link through proxy. When debug app return a file:// link like
file:///api/index.php?option=com_api&controller=core&task=login
So how could I keep android app to understand proxy setting when build. Hope anyone could help. Tks
-
RE: [SOLVED] Access Vuex store in router.js
Tks for your quick reply, It work. I make typo with import {store} (lower case and It doesnot work before)
Here is my store index.js
https://gist.github.com/linhtranvu/ea0f30cafbce67a69e761e0ace21ba63
-
[SOLVED] Access Vuex store in router.js
I want to access Vuex store in router.js (not index.js of route where we could use
export default function ({ store })
)Here is the code I want to access store
path: '/list', component: () => import('layouts/my-layout.vue'), beforeEnter: (to, from, next) => { // Access store here next() },
I try
import { store } from 'Vuex';
andimport store from '../store/index.js'
but none workSo could anyone help me. Tks alot
-
RE: [SOLVED] Blank page when using beforeEnter route
My ignorance, must call next() function to process. I think this is just a hook and call before route change
-
RE: [SOLVED] Blank page when using beforeEnter route
ps: when comment out beforeEnter everthing work fine. So it s not a problem of template, page
-
[SOLVED] Blank page when using beforeEnter route
I am trying beforeEnter and have weird issue when page render white (blank), but console show no error
path: '/home', component: () => import('layouts/home.vue'), children: [ { path: 'list/files/:id_donvi?/:id_phong?', component: () => import('pages/docs/list/files.vue') , beforeEnter: (to, from, next) => { console.log(to) } },
In console I could see the log of “to” variable. But page show nothing. I have search and found someone enter the same issue but no solution.
Hope anyone could give a help. Tks
-
RE: Looking for advanced QTree example with lazy loading
- First when render Tree, data[] is empty. Because it is lazy load, we get root node from Ajax in
mounted: async function() {
done
is truly magic :D.done(treeNodes ) //Draw tree
at the end of lazy function mean the final node need to be draw. Any code above this line is just for generating treeNodes object
- First when render Tree, data[] is empty. Because it is lazy load, we get root node from Ajax in