zouyu
2025-08-12 297202512e2961bfb336509ed7979d70b657bd6a
对接浪潮单点登录调整
已修改3个文件
8 ■■■■ 文件已修改
src/main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tideLogin.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js
@@ -64,7 +64,7 @@
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(),
src/views/tideLogin.vue
@@ -13,7 +13,7 @@
  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(() => { });
      })
    }
vue.config.js
@@ -36,7 +36,7 @@
    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]: "",
@@ -66,7 +66,7 @@
          use: {
            loader: "worker-loader",
            options: {
              filename: "[name].[contenthash].worker.js", // 添加内容哈希到文件名
              // filename: "[name].[contenthash].worker.js", // 添加内容哈希到文件名
              inline: "fallback",
            },
          },