webpack proxy 两个接口有效,一个不生效,什么原因?

webpack proxy 两个接口有效,一个不生效,什么原因?

  proxy: {
                '/mtc': {
                    target: 'http://moceek.sanekai.com',
                    changeOrigin: true
                },
                '/mtc-athena': {
                    target: 'http://moceek.sanekai.com',
                    changeOrigin: true
                },
                //  下面这个配置不生效,上面两个生效
                '/mtc-funds': {
                    target: 'http://moceek.sanekai.com/mtc/mtc-funds',
                    changeOrigin: true
                }
            }
阅读 3.9k
1 个回答
      '/mtc-funds/lt': { 
                target: 'http://moceek.saneekai.com/mtc/mtc-funds/lt',
                changeOrigin: true
            }
            
  这样就生效了,(⊙﹏⊙)b
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题