|
|
@@ -143,14 +143,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onMessage (event) {
|
|
|
- if (!this.loading) {
|
|
|
- const id = event.data?.id
|
|
|
- if (id) {
|
|
|
- const program = this.$refs.table.getData().find(program => program.id === id)
|
|
|
- if (program) {
|
|
|
- program.img = event.data.base64
|
|
|
- }
|
|
|
- }
|
|
|
+ if (event.data?.type === 'PROGRAM_UPDATED') {
|
|
|
+ this.$refs.table.pageTo(1)
|
|
|
}
|
|
|
},
|
|
|
onAdd () {
|