[Vuetify] Scripts may close only the windows that were opened by them

今天用[Vuetify]遇到一個問題

Scripts may close only the windows that were opened by them.

原因:

用watch:關閉彈出視窗呼叫到函式(script)