@mixd-id/web-scaffold 0.1.2301231321 → 0.1.2301231322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.2301231321",
4
+ "version": "0.1.2301231322",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -248,13 +248,11 @@ export default{
248
248
 
249
249
  mounted() {
250
250
  this.socket.onAny(this.onHooks)
251
-
252
- window.addEventListener('focus', () => {
253
- //this.load()
254
- })
251
+ window.addEventListener('focus', this.onFocus)
255
252
  },
256
253
 
257
254
  unmounted() {
255
+ window.removeEventListener('focus', this.onFocus)
258
256
  this.socket.offAny(this.onHooks)
259
257
  },
260
258
 
@@ -331,6 +329,10 @@ export default{
331
329
  })
332
330
  },
333
331
 
332
+ onFocus(){
333
+ this.load()
334
+ },
335
+
334
336
  savePreset: throttle(function(preset) {
335
337
  this.socketEmit('user.save-preset', { key:this.model, preset:{
336
338
  presetIdx: this.presetIdx,