@mixd-id/web-scaffold 0.1.240411005 → 0.1.240411006
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
package/src/components/List.vue
CHANGED
|
@@ -427,10 +427,12 @@ export default{
|
|
|
427
427
|
if(this.presetKey){
|
|
428
428
|
return this.socket.send(this.presetSrc, { key:this.presetKey })
|
|
429
429
|
.then(config => {
|
|
430
|
-
|
|
430
|
+
if(config){
|
|
431
|
+
Object.assign(this.cConfig, config)
|
|
431
432
|
|
|
432
|
-
|
|
433
|
-
|
|
433
|
+
if(this.$route.query?.search)
|
|
434
|
+
this.preset.search = this.$route.query.search
|
|
435
|
+
}
|
|
434
436
|
})
|
|
435
437
|
}
|
|
436
438
|
return new Promise(resolve => resolve())
|
|
@@ -1675,10 +1675,12 @@ export default {
|
|
|
1675
1675
|
async loadPreset(){
|
|
1676
1676
|
return this.socket.send(this.presetSrc, { key:this.presetKey })
|
|
1677
1677
|
.then(async (config) => {
|
|
1678
|
-
|
|
1678
|
+
if(config){
|
|
1679
|
+
Object.assign(this.config, config ?? {})
|
|
1679
1680
|
|
|
1680
|
-
|
|
1681
|
-
|
|
1681
|
+
/*if(this.$route.query?.search)
|
|
1682
|
+
this.preset.search = this.$route.query.search*/
|
|
1683
|
+
}
|
|
1682
1684
|
})
|
|
1683
1685
|
.catch(() => {})
|
|
1684
1686
|
},
|
|
@@ -1453,10 +1453,12 @@ export default{
|
|
|
1453
1453
|
if(this.presetKey){
|
|
1454
1454
|
return this.socket.send(this.presetSrc, { key:this.presetKey })
|
|
1455
1455
|
.then(config => {
|
|
1456
|
-
|
|
1456
|
+
if(config){
|
|
1457
|
+
Object.assign(this.config.params, config.params)
|
|
1457
1458
|
|
|
1458
|
-
|
|
1459
|
-
|
|
1459
|
+
if(this.$route.query?.search)
|
|
1460
|
+
this.preset.search = this.$route.query.search
|
|
1461
|
+
}
|
|
1460
1462
|
})
|
|
1461
1463
|
}
|
|
1462
1464
|
return new Promise(resolve => resolve())
|