Files
core/hwe/ts/components/BottomBar.vue
T
Hide_D d28f402cba build: bootstrap-vue-3
- tiptap/CustomImage 정의 문제 수정
- useToast() 관련 문제 수정
2022-03-20 18:37:38 +09:00

41 lines
822 B
Vue

<template>
<div class="bg0" style="padding-top:20px;">
<button type="button" class="btn btn-sammo-base2 back_btn" @click="back">
돌아가기
</button>
<div></div>
</div>
</template>
<script lang="ts">
import { defineComponent, type PropType } from "vue";
import "@scss/game_bg.scss";
export default defineComponent({
methods: {
back(){
if(this.type === 'normal'){
location.href = './';
}
else if(this.type == 'chief'){
location.href = 'v_chiefCenter.php';
}
else{
//TODO: window.close하려면 부모창이 있어야함!
window.close();
}
}
},
props: {
type: {
type: String as PropType<"normal"|"chief"|"close">,
default: "normal",
required: false,
},
},
});
</script>
<style>
</style>