Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

我的需求:

默认在本地启动项目是 localhost:8080,由于后端cookie设置在子路径下,所以我想给它在本地配置个子域名,比如:localhost:8080/subpath

我的做法:

所以我在 vue.config.js 中添加了:

module.exports = {
  // 基本路径
  publicPath: './subpath/',
  // ... 
}

我的问题:

本地访问配置的 url 后被代理到测试环境了...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.8k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...