+ mounted: async function() {
+ // NOTE: variant cannot be set before store is initialized
+ const vname = this.$route.params["vname"];
+ //const idxOfVar = this.st.variants.indexOf(e => e.name == vname);
+ //this.variant = this.st.variants[idxOfVar]; //TODO: is it the right timing?!
+ this.variant.name = vname;
+ const vModule = await import("@/variants/" + vname + ".js");
+ window.V = vModule.VariantRules;