We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87ee53f commit 08a1804Copy full SHA for 08a1804
web/src/core/global.js
@@ -1,14 +1,9 @@
1
import config from './config'
2
-import { emitter } from '@/utils/bus.js'
3
4
// 统一导入el-icon图标
5
import * as ElIconModules from '@element-plus/icons-vue'
6
// 导入转换图标名称的函数
7
8
-export const closeThisPage = () => {
9
- emitter.emit('closeThisPage')
10
-}
11
-
12
export const register = (app) => {
13
// 统一注册el-icon图标
14
for (const iconName in ElIconModules) {
web/src/utils/closeThisPage.js
@@ -0,0 +1,5 @@
+import { emitter } from '@/utils/bus.js'
+
+export const closeThisPage = () => {
+ emitter.emit('closeThisPage')
+}
0 commit comments