X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FAbout.vue;h=7f3e687b07ec82960114ab743fce3eed63920317;hb=a3ac374ba213c7044db6cbcfafb81d4b66a0a290;hp=36c01ef3fa3689e4a27d00817ef832ab24712f08;hpb=72ccbd6730241771e6ba86b6a5b62597b4c7e2f4;p=vchess.git diff --git a/client/src/views/About.vue b/client/src/views/About.vue index 36c01ef3..7f3e687b 100644 --- a/client/src/views/About.vue +++ b/client/src/views/About.vue @@ -10,48 +10,13 @@ import { store } from "@/store"; export default { name: 'my-about', - data: function() { - return { - st: store.state, - content: "", - }; - }, - mounted: function() { - this.content = - require("raw-loader!@/translations/about/" + this.st.lang + ".pug") - // Next two lines fix a weird issue after last update (2019-11) - .replace(/\\[n"]/g, " ") - .replace('module.exports = "', '').replace(/"$/, ""); + computed: { + content: function() { + return require("raw-loader!@/translations/about/" + store.state.lang + ".pug") + // Next two lines fix a weird issue after last update (2019-11) + .replace(/\\[n"]/g, " ") + .replace('module.exports = "', '').replace(/"$/, ""); + }, }, }; - -