202502-Wms-NanTongYaChi/wms_web_nantong_yachi/src/utils/loading.js

14 lines
325 B
JavaScript
Raw Normal View History

2025-03-29 08:52:33 +08:00
import { ElLoading } from 'element-plus'
export const loading = {
loadingInstance: null,
open: function (text) {
this.loadingInstance = ElLoading.service({
lock: true,
text: text,
background: 'rgba(0, 0, 0, 0.7)'
})
},
close: function () {
this.loadingInstance.close()
}
}