| | |
| | | }, |
| | | methods: { |
| | | langreash(res) { |
| | | if (this.url == '') return |
| | | this.reportUrl = '' |
| | | if (res == true) { |
| | | if (this.url.indexOf('theme=white') != -1) { |
| | | this.url = this.url.replace('theme=white', 'theme=dark'); |
| | | } |
| | | } else if (res == false) { |
| | | if (this.url.indexOf('theme=dark') != -1) { |
| | | this.url = this.url.replace('theme=dark', 'theme=white'); |
| | | } |
| | | } |
| | | this.reportUrl = this.url; |
| | | this.$store.state.reporturl = this.url; |
| | | this.$router.push('/QualityInspection') |
| | | |
| | | this.$router.push('/QualityInspection') |
| | | |
| | | }, |
| | | refreash(res) { |
| | | if (this.url == '') return |
| | | this.reportUrl = '' |
| | | if (res == true) { |
| | | if (this.url.indexOf('lang=en') != -1) { |
| | | this.url = this.url.replace('lang=en', 'lang=zh'); |
| | | } |
| | | } else if (res == false) { |
| | | if (this.url.indexOf('lang=zh') != -1) { |
| | | this.url = this.url.replace('lang=zh', 'lang=en'); |
| | | } |
| | | } |
| | | this.reportUrl = this.url; |
| | | this.$store.state.reporturl = this.url; |
| | | this.$router.push('/QualityInspection') |
| | | |
| | | this.$router.push('/QualityInspection') |
| | | |
| | | }, |
| | | showChangeIfream(res) { |
| | | if (this.$store.state.themeflag == true) { |
| | |
| | | this.$store.state.reporturl = res; |
| | | this.reportUrl = res; |
| | | this.url = res |
| | | // console.log("2", this.reportUrl) |
| | | console.log("2", this.reportUrl) |
| | | } |
| | | }, |
| | | mounted() { |