From 00d488cbc2a687068ae928228d4dd255f7e2ee97 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Tue, 28 Apr 2026 15:21:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=92=A4=E9=94=80=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 2 +- src/store/seller/index.ts | 6 +++--- src/tool/https.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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)