๋ฐ์ํ
ํ์ฌ ํ์ด์ง์์ ๋์ผํ ํ์ด์ง ๊ฒฝ๋ก๋ก ์ด๋ํ๋ ค๊ณ ํ๋ฉด ์๊ธฐ๋ ERROR๋ค.
๐๐ป ERROR๊ฐ ๋ฐ์ํ ์ฝ๋
this.$router.push('/monitoring');
๐๐ป ์์ ํ ์ฝ๋
๋์ค ํ๋๋ก ๋ฐ๊ฟ์ฃผ๋ฉด ๋๋ค.
-catch๋ก ์ค๋ฅ๋ฅผ ๋ฌด์ํ๊ธฐ
this.$router.push('/monitoring').catch(()=>{});
-ํ์ฌ ์ฃผ์์ ์ด๋ํ ์ฃผ์๋ฅผ ๋น๊ตํด์ ์คํํ๊ธฐ
if (this.$route.path !== '/monitoring') {
this.$router.push('/monitoring')
}
๋ฐ์ํ
'๋ด๊ฐ ๋ง๋ ERROR' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[github page] Failed to load resource: the server responded with a status of 404 () (0) | 2022.04.11 |
---|---|
[Vue] Vue packages version mismatch (0) | 2021.11.25 |
[Golang] go module error (0) | 2021.11.17 |
[React] e.preventDefault(); (0) | 2021.11.16 |
[React] Each child in a list should have a unique key prop. (0) | 2021.11.16 |
๋๊ธ