| | |
| | | Vue.prototype.HaveJson = (val) => { |
| | | return JSON.parse(JSON.stringify(val)); |
| | | }; |
| | | Vue.prototype.javaApi = "http://192.168.21.53:8001/lims"; |
| | | Vue.prototype.javaApi = "http://10.136.12.71:8009/lims"; |
| | | Vue.prototype.checkPermi = checkPermi; |
| | | Vue.prototype.uploadHeader = { |
| | | Authorization: "Bearer " + getToken(), |
| | |
| | | computed: {}, |
| | | methods: { |
| | | async goLogin() { |
| | | store.dispatch('TideLogin', this.$route.query.code).then(() => { |
| | | store.dispatch('TideLogin', {code:this.$route.query.code}).then(() => { |
| | | this.$router.push({ path: this.redirect || "/" }).catch(() => { }); |
| | | }) |
| | | } |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://localhost:8001`, |
| | | target: `http://localhost:8009`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ["^" + process.env.VUE_APP_BASE_API]: "", |
| | |
| | | use: { |
| | | loader: "worker-loader", |
| | | options: { |
| | | filename: "[name].[contenthash].worker.js", // 添加内容哈希到文件名 |
| | | // filename: "[name].[contenthash].worker.js", // 添加内容哈希到文件名 |
| | | inline: "fallback", |
| | | }, |
| | | }, |