this.$router.replace({ path: "/subpagest" });//不會向 history 添加新記錄,而是跟它的方法名一樣 —— 替換掉當前的 history 記錄;
this.$router.push({ path: "/subpagest" });//會向 history 棧添加一個新的記錄;
this.$router.go(-1);//這個方法的參數是一個整數,意思是在 history 記錄中向前或者后退多少步。