提交 2f8a3e35 编写于 作者: P piexlmax

增加$CloseThisPage全局方法

上级 1962bd77
......@@ -3,12 +3,10 @@
*
* */
// 加载网站配置文件夹
import config from './config'
import { register } from './global'
export const run = function(app) {
app.config.globalProperties.$GIN_VUE_ADMIN = config
// app.use(uploader)
register(app)
console.log(`
欢迎使用 Gin-Vue-Admin
当前版本:V2.4.5 alpha
......
import config from './config'
import { emitter } from '@/utils/bus.js'
const closeThisPage = () => {
emitter.emit('closeThisPage')
}
export const register = (app) => {
app.config.globalProperties.$GIN_VUE_ADMIN = config
app.config.globalProperties.$CloseThisPage = closeThisPage
}
......@@ -252,7 +252,6 @@ export default {
})
},
removeTab(tab) {
console.log(tab)
const index = this.historys.findIndex(
item => getFmtString(item) === tab
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册