2021-09-26 12:16:46 +08:00

60 lines
1.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
* _oo0oo_
* o8888888o
* 88" . "88
* (| -_- |)
* 0\ = /0
* ___/`---'\___
* .' \\| |// '.
* / \\||| : |||// \
* / _||||| -:- |||||- \
* | | \\\ - /// | |
* | \_| ''\---/'' |_/ |
* \ .-\__ '-' ___/-. /
* ___'. .' /--.--\ `. .'___
* ."" '< `.___\_<|>_/___.' >' "".
* | | : `- \`.;`\ _ /`;.`/ - ` : | |
* \ \ `_. \_ __\ /__ _/ .-` / /
* =====`-.____`.___ \_____/___.-`___.-'=====
* `=---='
*
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* 佛祖保佑 永不宕机 永无BUG
*
* @Descripttion:
* @version:
* @Date: 2021-04-28 16:50:05
* @LastEditors: huzhushan@126.com
* @LastEditTime: 2021-09-18 17:51:25
* @Author: huzhushan@126.com
* @HomePage: https://huzhushan.gitee.io/vue3-element-admin
* @Github: https://github.com/huzhushan/vue3-element-admin
* @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
-->
<template>
<h2>编辑页面 id:{{ $route.params.id }}</h2>
<el-button type="primary" @click="closeTag">关闭</el-button>
<el-button type="success" @click="closeTag({ reload: true })">
关闭当前页面更新上级页面组件重新渲染
</el-button>
<el-button type="warning" @click="closeTag({ f5: true })">
关闭当前页面刷新上级页面浏览器刷新
</el-button>
</template>
<script>
import { defineComponent } from 'vue'
import useCloseTag from '@/hooks/useCloseTag'
export default defineComponent({
setup() {
const { closeTag } = useCloseTag()
return {
closeTag,
}
},
})
</script>