mind-map/web/src/utils/loading.js
2023-08-09 09:09:43 +08:00

17 lines
299 B
JavaScript

import { Loading } from 'element-ui'
let loadingInstance = null
export const showLoading = () => {
loadingInstance = Loading.service({
lock: true
})
}
export const hideLoading = () => {
if (loadingInstance) {
loadingInstance.close()
loadingInstance = null
}
}