【单点登录】解决登出问题

This commit is contained in:
wuhongjian 2022-07-21 18:38:20 +08:00
parent b1543e323a
commit f952931b92
1 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
/* /*
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-03-29 17:48:03 * @Date: 2022-03-29 17:48:03
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-07-07 09:22:56 * @LastEditTime: 2022-07-21 18:27:41
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
*/ */
import { createApp } from 'vue' import { createApp } from 'vue'
@ -25,10 +25,10 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue'
* @author chuzhixin 1204505056@qq.com * @author chuzhixin 1204505056@qq.com
* @description 正式环境默认使用mock正式项目记得注释后再打包 * @description 正式环境默认使用mock正式项目记得注释后再打包
*/ */
if (process.env.NODE_ENV === 'production') { // if (process.env.NODE_ENV === 'production') {
const { mockXHR } = require('@/utils/static') // const { mockXHR } = require('@/utils/static')
mockXHR() // mockXHR()
} // }
const emitter = mitt() const emitter = mitt()
const app = createApp(App) const app = createApp(App)
app.config.globalProperties.$emitter = emitter app.config.globalProperties.$emitter = emitter