odc.xiaohui
2023-12-04 f916ecde51312bb899ed4bf981f50e4655d600ec
修改视频专网
2个文件已修改
5 ■■■■■ 已修改文件
src/utils/request.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.ts
@@ -108,6 +108,7 @@
    }
    if (code === 401) {
      await userStore.logout()
      console.log(code, 'code==============');
      router.push({ path: '/login' });
      // prettier-ignore
vite.config.ts
@@ -26,9 +26,9 @@
      open: true,
      proxy: {
        [env.VITE_APP_BASE_API]: {
          target: '171.221.173.53:8801',
          // target: '171.221.173.53:8801',
          // target: 'http://80.36.32.175:8080',
          // target: 'http://192.168.3.228:8080',
          target: 'http://192.168.3.228:8080',
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
        }