- now you want to execute a method (or function), but you need to jump to the login page, but how can you continue to execute that method after logging in?
the usual practice is to jump to login with a parameter on the url to indicate the page of the previous step, so that after the login is complete, check that if there is this parameter, jump back to the original page. Of course, there are other ways, and this is just one of them.
or take a logo upstairs to determine whether or not to call this method. I hope it will help you!
has done something similar.
individuals are not recommended to do this unless they have to.
assume that there are other similar functions that require login, one or two are fine, and in more than a dozen words, the login page is a little overloaded.
1. Jump to the login page URL
with the parameters to be operated and the address of the current page,
2. The login page checks the pagefrom
parameter,
3. If it is a favorite function, then log in and execute the relevant function (parameters have been brought in). After execution, jump back to url
of pagefrom
.
suggestion: just jump back to the original favorites page after login.
the parameters and the current url are assembled into a parameter like redirect_url, so it is easy to jump to this page after logging in, and then execute the previous favorite methods according to the parameters!
make a tag in the method, and then put the method name in the url when you jump. After the jump, parse the url, and execute the corresponding method from the location of the tag. This operation is a bit unreasonable
write a session or cookie or url with callback
bring the callback data with you when you enter the authorization page. Put the callback where the authorization is completed
1) put the returned address on the parameter, log in to determine whether there are callback parameters, and jump directly if so!
the backend returns the image address, and after stitching the string, it is displayed on the page The actual address displayed by the src of img is http: localhost:port + picture address which god knows how to solve this problem img src img src...
let status = true; while (status) { } console.log ( "not executed here "); ...
as shown in the figure, the development environment is configured with forwarding but after packaging, there is no whether the code in the production environment can be forwarded . now the URL in the production environment defaults to the access ...
vuescript JS, mounted js script js ,, so, to fix this BUG, you must make sure that the external js is loaded, but I don t know how to make sure that the JS is loaded. May I ask the gods how to do this? ...
excuse me, when can I use loadChildren to route? On the Internet, it is said that the loading sub-module, in the project, what is the sub-module ah. How is this "sub-module " design specification defined? do you have any examples for reference.? ...
function fun(a,b){ console.log(`${a},${b}`) } fun(123,456); 123a456b123456 is there a parameter passing method in js similar to fun (baked 456 ...
recently, I have been trying to develop my own wheels with native js. The first project is paging, but because I am not familiar with the encapsulation mode of native js plug-ins, I would like to ask you to see if my writing rules are not standard? There...
does webpack reverse engineering have any friends who know about it? my source file can t be found. after webpack is packaged, how can I get the sourcemap file back to the source file? ...
this is your own. When you move, the direction of the element remains the same and will not rotate with the direction of the line ....
I tied the data with (semicolon) on vue s {} template syntax and was escaped on url. How can I escape back or avoid taking it with me? <router-link :to="{ path: pingou 14,query: {attr_id:attributes}}">< router-link> attribu...
the h5 application made by the company has the problem of style distortion caused by the virtual keys (home key, return key, etc.) at the bottom of the phone during the test ...
when VScode comments the jsx in the react file, is there any configuration missing from the used in front of the code? ...
what I want to do is to display the loading.gif diagram when the picture is not loaded. my picture (figure 9) is in a div1, and the address of the picture is in the array imgPath = []. When the array is empty, the div1, of div1 is created when the ar...
mongodb node mongodb node request mongodb con ...
the renamed data cannot be returned after receiving the file using formidable and renaming the saved file The last picPath returned by was always empty, and it turned out to be asynchronous, and then I wrote it in the callback of from.on ( "end "). ...
I want to learn the core principle of modular loader. Now it can dynamically load files and prevent overloading, but at present, it is stuck in the callback function to receive parameters. Please give me some advice. Thank you. for example: A.js requ...
A headache. I want to match a positive integer, but it doesn t include something like 1.0, so I want to convert a string first, and then go to the matching point regularly. as a result, if any form of conversion fails, 1.0 will be converted to 1. and d...
after using the intermediate proxy layer built with webpack + koa2 + react, the front-end react-router simply cannot be used, because as soon as the browser is refreshed, the routing of koa2 will be triggered. How the routing problem is handled in such a...
php is empty ...
for example, now I have a bunch of strings, such as: my mother takes me * *. now how do I convert "Mom take me " to Mom take me and render it in react as bold. instead of rendering to Mom take me * or like this ...