发布setup语法糖的beta版

This commit is contained in:
piexlmax
2022-01-01 00:56:02 +08:00
parent b4b5eb9266
commit b3b8de1c4c
5 changed files with 5 additions and 8 deletions
+1 -4
View File
@@ -5,7 +5,7 @@ import { emitter } from '@/utils/bus.js'
import * as ElIconModules from '@element-plus/icons'
// 导入转换图标名称的函数
const closeThisPage = () => {
export const closeThisPage = () => {
emitter.emit('closeThisPage')
}
@@ -14,8 +14,5 @@ export const register = (app) => {
for (const iconName in ElIconModules) {
app.component(iconName, ElIconModules[iconName])
}
app.config.globalProperties.$GIN_VUE_ADMIN = config
app.config.globalProperties.$CloseThisPage = closeThisPage
}