X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FAbout.vue;h=47a740d2f01cc58598cd7168c4d463899aa017c9;hb=bbce9c106a38defb40b48bfca2f835f5c85d4de0;hp=36c01ef3fa3689e4a27d00817ef832ab24712f08;hpb=72ccbd6730241771e6ba86b6a5b62597b4c7e2f4;p=vchess.git diff --git a/client/src/views/About.vue b/client/src/views/About.vue index 36c01ef3..47a740d2 100644 --- a/client/src/views/About.vue +++ b/client/src/views/About.vue @@ -10,48 +10,20 @@ 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(/"$/, ""); + }, }, };