diff --git a/.env.dev b/.env.dev index b39fcc14..89ea00da 100644 --- a/.env.dev +++ b/.env.dev @@ -9,6 +9,6 @@ VITE_APP_BASE_URL = 'https://develop.api.aida.com.hk' # VITE_APP_BASE_URL = 'http://192.168.31.118:5567' # 李天祥 # VITE_APP_BASE_URL = 'http://192.168.31.82:5567' -# VITE_APP_BASE_URL = 'http://192.168.31.82:5569' +VITE_APP_BASE_URL = 'http://192.168.31.82:5569' # 海波 # VITE_APP_BASE_URL = 'http://192.168.31.34:5567' diff --git a/src/store/seller/index.ts b/src/store/seller/index.ts index cc60b5fe..a72b3227 100644 --- a/src/store/seller/index.ts +++ b/src/store/seller/index.ts @@ -60,9 +60,9 @@ const seller: Module = { actions: { get_isSeller({ commit }) { - // Https.axiosGet(Https.httpUrls.checkSellerDesigner).then(rv => { - // commit('set_isSeller', !!rv) - // }) + Https.axiosGet(Https.httpUrls.checkSellerDesigner).then(rv => { + commit('set_isSeller', !!rv) + }) }, async get_designerInfo({ commit }) { const rv = await Https.axiosGet(Https.httpUrls.getDesignerInfo) diff --git a/src/tool/https.js b/src/tool/https.js index 864c18ad..f88c16ca 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -25,7 +25,7 @@ import store from '@/store' // httpIp = '' // } const isDev = import.meta.env.VITE_USER_NODE_ENV == 'development' -const baseURL = import.meta.env.VITE_APP_BASE_URL +const baseURL = isDev ? '' : import.meta.env.VITE_APP_BASE_URL axios.defaults.baseURL = baseURL; // isDev ? '' : import.meta.env.VITE_APP_BASE_URL; //配置接口地址 console.log(import.meta.env.VITE_APP_BASE_URL, baseURL)