koa API: http: xxx,xxxxxx.com weapp t. Direct address bar access display 404 it should be that nuxt accesses the weapp token page under the page project by default. If I want to access the koa interface in the address bar, how can I? ...
mainly adds permission page control to the backend management system. For example, administrators can access all pages, while junior staff can only access some pages . the main problem is how to control the page in the middleware. In the vue set I curr...
1. I am a novice, read a lot of documents, and use koa2 + koa-generator + monogoDB to build a demo, to try to write some simple interfaces. but the question is, how to format the returns uniformly? Or how does my project directory need to be set ...
the server is koa2,. How do I get the operation that the client canceled the request? ...
The scanBook method under src me.vue can obtain the ISBN of the book normally. The problem lies in the async addBook method under the same page. After logging in normally, when adding a book, the route of weapp addbook can not be triggered. N methods ...
as described by stackoverflow Separate router and controller in koa . if the Controller layer is really going to use class to build an instance, how can it be easier and more elegant to use on Router? ...
koa-router routing settings are as follows, router.get( user :id ) router.get( user aaa ) cannot access user aaa, is parsed to the parameter aaa ; when the following settings are set, router.get( user aaa ) router.get( user :id ) c...
The idea of is like this url => => (DONE) or (NEXT) => (403) or (DONE) meta information that can be set up for routing is inspired in vue-router auth: true you can know whether permission is required for this url. but what should I do wh...
using koa2 s middleware, I want to implement an interceptor in order to perform some processing on all requests. The code is as follows: when visiting , the middleware is executed and and 1111 are printed at the terminal, but the page shows tha...
how to get controllers frontListNewsCenter.js data in router.get ( ) of routes news.js routes news.js const router = require( koa-router )({ prefix: news }) const config = require( .. config ) const controllers = require...
RT Route is: koa-router A parameter is handwritten in the browser address bar, which can be obtained by the server. It is written on the a tag but reported 400 ....
router.get( meibrain , async (ctx, next) => { await ctx.render( meibrain , { imgSrc: images newsbannenr.png , koa-router }) })...
recently, I have basically mastered the basic knowledge in self-study spark,. If you want to practice, ask for leave. Do you have any data sets to play with? Or if there are any good open source learning materials, I would like to further improve my unde...
want to preview Vue project on Git pages add index.html after the link given cannot achieve complete effect only one content in index.html component effect cannot present solve ...
use the iview component Message to make a login request using axios, and display the error message according to the returned status code this.$axios.post( http: wx.simplesay.xin user login , { email: this.formLogin[ email ], password: t...
problem description my scene is that several circles are dragged around a big circle, and all the circles of any circle are scrolled 360 degrees uniformly. The following code calculates the angle of the small circle, but I drag the event to trigger th...
my website needs a markdown editor similar to that on stackoverflow, which you are sure to have used, very concise and powerful, currently using the WP-Markdown plug-in, which is not bad, but does not support copy and paste of images (from the clipboard...