增加$CloseThisPage全局方法
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user