mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 06:52:01 +09:00
라우터 수정
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
const rootUrl = this.$store.getters['login/getRootUrl'];
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.push({ path: rootUrl }).catch(()=>{
|
||||
});;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</span>
|
||||
|
||||
<p class="error-btns">
|
||||
<a href="#" @click="backGo()">이전 페이지로</a><a href="#" @click="goMain()">메인으로</a>
|
||||
<a href="javascript:void(0);" @click="backGo()">이전 페이지로</a><a href="javascript:void(0);" @click="goMain()">메인으로</a>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -34,13 +34,17 @@
|
||||
methods: {
|
||||
// 이전 페이지
|
||||
backGo() {
|
||||
const beforeUrl = this.$store.getters['login/getBeforeUrl'];
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.go(-1);
|
||||
this.$router.push({ path: beforeUrl }).catch(()=>{
|
||||
});
|
||||
},
|
||||
// 메인 페이지
|
||||
goMain(){
|
||||
const rootUrl = this.$store.getters['login/getRootUrl'];
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.push({ path: '/' });
|
||||
this.$router.push({ path: rootUrl }).catch(()=>{
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user