This commit is contained in:
c
2025-03-12 20:11:03 +08:00
commit e65b262527
1179 changed files with 148205 additions and 0 deletions
@@ -0,0 +1,17 @@
class UploadProvider {
constructor() {
this.callbacks = {}
}
on (event, callback) {
this.callbacks[event] = callback
}
emit (event, data) {
if (this.callbacks[event]) {
this.callbacks[event](data)
}
}
}
export default UploadProvider