单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
3个文件已修改
6 ■■■■ 已修改文件
.env.development 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/deviceWindoes2.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -1,6 +1,6 @@
# 本地环境
VITE_ENV=development
VITE_API_BASE_URL=https://testbs.ihemodialysis.com
VITE_API_BASE_URL=https://testbs.ihemodialysis.com/
VITE_SSE_BASE_URL=http://testbs.ihemodialysis.com/sse/sseEvent/
.env.production
@@ -1,6 +1,6 @@
# 生产环境
VITE_ENV=production
VITE_API_BASE_URL=https://backend.ihemodialysis.com
VITE_API_BASE_URL=https://backend.ihemodialysis.com/
VITE_SSE_BASE_URL=https://backend.ihemodialysis.com/sse/sseEvent/
src/views/deviceWindoes2.vue
@@ -2468,7 +2468,7 @@
  // http://testbs.ihemodialysis.com/sse/sseEvent
  // const test='http://testbs.ihemodialysis.com/sse/sseEvent/'
  数据初始化.value = true;
  const test = "https://backend.ihemodialysis.com/sse/sseEvent/";
  const test = import.meta.env.VITE_API_BASE_URL;
  const stateArr = [
    { key: 0, value: "正在链接中" },
    { key: 1, value: "已经链接并且可以通讯" },