Executing window.open in $nextTick to open a new window does not work

problem description

when I use window.open (url, "newwidnow", height, width, left, top.) ) in $nextTick to open a new window with a fixed width and height and a fixed display position, the code executes to window.open , but the new window does not appear and does not report an error.
you can open a new window without $nextTick using window.open externally.
and whether inside $nextTick or outside $nextTick , console.log (this) or console.log (window.open (url, "newwidnow", height, width, left, top.)) ) is the same.

my attempt

I tried to wrap window.open in setTimeout without success. The program can get to open, but it doesn"t work.

   

Jul.27,2021

should be blocked by the browser as an advertising window


let newWin = window.open()

this.$nextTick(_ => {
    newWin.location = "Expected URL"
})

https://stackoverflow.com/a/3.

Menu