diff --git a/.env b/.env new file mode 100644 index 0000000..a8f6152 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +VUE_APP_BASE_URL = https://k8s-horse-gateway.mashibing.cn +VUE_APP_STATIC_URL = https://k8s-shop-app.mashibing.cn +#VUE_APP_IM_URL = ws://192.168.10.94:8090 +VUE_APP_IM_URL = wss://k8s-horse-gateway.mashibing.cn \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..b223a6f --- /dev/null +++ b/.env.production @@ -0,0 +1,3 @@ +VUE_APP_BASE_URL = https://you-gateway.mashibing.com +VUE_APP_STATIC_URL = https://you-gateway.mashibing.com +VUE_APP_IM_URL = wss://you-gateway.mashibing.com \ No newline at end of file diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..04b10c7 --- /dev/null +++ b/.env.test @@ -0,0 +1,3 @@ +VUE_APP_BASE_URL = https://k8s-horse-gateway.mashibing.cn +VUE_APP_STATIC_URL = https://k8s-shop-app.mashibing.cn +VUE_APP_IM_URL = wss://k8s-horse-gateway.mashibing.cn \ No newline at end of file diff --git a/src/common/utils/requset.js b/src/common/utils/requset.js index 9858498..3d2725c 100644 --- a/src/common/utils/requset.js +++ b/src/common/utils/requset.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-17 17:42:32 * @LastEditors: ch - * @LastEditTime: 2022-06-09 14:51:07 + * @LastEditTime: 2022-06-10 15:59:04 * @Description: 项目接口请求统一处理器,返回一个需要token和不需要token的请求封装方法 */ @@ -84,6 +84,7 @@ const clearRepeat = (option) =>{ // 不需要token的接口封装 const MsbRequest = new MsbUniRequest(); +console.log(process.env,'process.envprocess.envprocess.env'); MsbRequest.baseUrl = ENV.baseUrl; MsbRequest.use('request', (option) => { diff --git a/src/pages/account/message/chat/index.vue b/src/pages/account/message/chat/index.vue index 7b06445..700f9ce 100644 --- a/src/pages/account/message/chat/index.vue +++ b/src/pages/account/message/chat/index.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-26 14:32:03 * @LastEditors: ch - * @LastEditTime: 2022-06-10 11:51:39 + * @LastEditTime: 2022-06-10 15:00:39 * @Description: file content -->