ali před 2 roky
rodič
revize
fa091805f8

+ 2 - 5
src/components/Widgets/Store/StoreProduct/AdminStoreProductShow/AdminStoreProductShow.vue

@@ -46,11 +46,11 @@ export default {
     EntityEdit
   },
   mixins: [mixinWidget],
-  data: () => {
+  data () {
     return {
       mounted: false,
       entityLoading: true,
-      api: null,
+      api: APIGateway.product.APIAdresses.byId(this.$route.params.id),
       entityIdKey: 'id',
       entityParamKey: 'id',
       showRouteName: 'Admin.Content.Show',
@@ -73,9 +73,6 @@ export default {
       ]
     }
   },
-  created() {
-    this.api = APIGateway.content.APIAdresses.byId(this.$route.params.id)
-  },
   mounted() {
     this.setActionBtn()
     this.mounted = true