Commit 7ba84a1d authored by JunHyung An's avatar JunHyung An
Browse files

Refuse direct access

parent 6b1c03cb
Loading
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -41,7 +41,14 @@ export default defineComponent({
  setup() {

    const store = useStore();
    const result = JSON.parse(JSON.stringify(store.state.data));
    let result = JSON.parse(JSON.stringify(store.state.data));
    
    // Refuse direct access to this page
    if (!result) {
      alert('비밀키를 넣은 후 다시 시도해주세요.');
      window.location.href = '#/last';
      location.reload();
    }
    
    // console.log(result);
    // console.log(JSON.parse(JSON.stringify(result)))