Skip to content

Commit

Permalink
fix: update dev baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Jan 6, 2025
1 parent 61a5569 commit 4949bbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/service/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ installInterceptors($)

// cms通用请求接口
function $cms(options) {
let domain = (options && options.domain) || process.env.VUE_APP_CMS_API;
let domain = (options && options.domain) || __cms;
let config = {
// 同时发送cookie和basic auth
withCredentials: true,
baseURL: process.env.NODE_ENV === "production" ? domain : "/",
baseURL: domain,
// baseURL: process.env.NODE_ENV === "production" ? domain : "/",
headers: Object.assign({}, options.headers || {}),
};

Expand Down

0 comments on commit 4949bbd

Please sign in to comment.