Skip to content

Commit

Permalink
Updated: route params and eslint to remove console warnings (#85zt0m4qc)
Browse files Browse the repository at this point in the history
  • Loading branch information
k2maan committed May 11, 2023
1 parent 1075f78 commit cc8e7b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/no-deprecated-slot-attribute': 'off',
'@typescript-eslint/no-explicit-any': 'off',
Expand Down
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const routes: Array<RouteRecordRaw> = [
beforeEnter: authGuard
},
{
path: '/catalog-product-details/:groupId/:productId',
path: '/catalog-product-details/:productId/:variantId',
name: 'Catalog-product-details',
component: CatalogProductdetails,
beforeEnter: authGuard
Expand Down
4 changes: 2 additions & 2 deletions src/views/catalog-product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default defineComponent({
})
},
async mounted() {
await this.store.dispatch('product/setCurrentCatalogProduct', { productId: this.$route.params.groupId })
await this.store.dispatch('product/setCurrentCatalogProduct', { productId: this.$route.params.productId })
if (this.product.variants) {
this.getFeatures()
this.updateVariant()
Expand All @@ -128,7 +128,7 @@ export default defineComponent({
Object.keys(features).forEach((color) => this.features[color] = sortSizes(features[color]))
const openedVariant = this.product.variants.find((variant: any) => variant.productId === this.$route.params.productId)
const openedVariant = this.product.variants.find((variant: any) => variant.productId === this.$route.params.variantId)
this.selectedColor = getFeature(openedVariant.featureHierarchy, '1/COLOR/')
this.selectedSize = getFeature(openedVariant.featureHierarchy, '1/SIZE/')
},
Expand Down
2 changes: 1 addition & 1 deletion src/views/catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default defineComponent({
this.preordBckordComputationJob = {}
}
} catch (error) {
console.log(error)
console.error(error)
}
},
getTime(time: number) {
Expand Down

0 comments on commit cc8e7b2

Please sign in to comment.