The server connected through Xshell, after the vue project is started, if xshell is closed, the project will stop.
The solution is to enter the following command instead of npm run serve
nohup npm run serve >/dev/null 2>&1 &
The nohup command can continue to run the corresponding process after you log out of the account/close the terminal. Nohup means no hang up.