@lancom/shared 0.0.349 → 0.0.350
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/layouts/products.vue +2 -2
- package/package.json +1 -1
package/layouts/products.vue
CHANGED
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
mixins: [metaInfo],
|
|
93
93
|
middleware: ['page-info'],
|
|
94
94
|
async fetch() {
|
|
95
|
-
// this.setPlaceholder(true);
|
|
96
95
|
await this.loadProducts();
|
|
97
96
|
},
|
|
98
97
|
computed: {
|
|
@@ -323,7 +322,8 @@
|
|
|
323
322
|
setTimeout(() => this.logGtm());
|
|
324
323
|
} catch ({ response }) {
|
|
325
324
|
if (process.server) {
|
|
326
|
-
|
|
325
|
+
// console.log('status code: ', this.loadError, process.server, this._self.context, Object.keys(this));
|
|
326
|
+
this.$root.context.res.statusCode = this.loadError?.statusCode || 500;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
},
|