X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FAbout.vue;h=3b1a2cb94eaf6f2af06c510491c3fd4c45beef0d;hp=36c01ef3fa3689e4a27d00817ef832ab24712f08;hb=fcbc92c26e382e425d3d4cc4910eaf1a1d61c989;hpb=99b7a14c6e01c53a49459c8d4681acf6abe635d8 diff --git a/client/src/views/About.vue b/client/src/views/About.vue index 36c01ef3..3b1a2cb9 100644 --- a/client/src/views/About.vue +++ b/client/src/views/About.vue @@ -10,18 +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(/"$/, ""); + }, }, };