When thinkphp5 logs out, do you always skip to the interface that waits for 3 seconds?

problem description

as shown in the figure below, when thinkphp5 logs out, he always jumps to the interface that waits for 3 seconds. Is there any way to jump to the login interface without going through the waiting interface?

the environmental background of the problems and what methods you have tried

I have tried to modify the tpl template in jump, but it doesn"t seem to work

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

I hope to be able to jump directly to the login interface without going through the interface of jumping and waiting for 3 seconds.

Apr.11,2021

return redirect (' http://www.thinkphp.cn');


you use the default jump writing method of tp, you use ajax to write exit, and write ajax in the jump place


header (" Location: https://www.baidu.com")

)
Menu