hookehuyr

feat: 更新代理服务器地址并添加首页数据接口调用

将开发环境代理地址从oa-dev.onwall.cn更改为oa.jcedu.org
在Home.vue中添加首页数据接口调用逻辑
......@@ -16,7 +16,7 @@ VITE_ID = 13761653761
VITE_PIN =
# 反向代理服务器地址
VITE_PROXY_TARGET = https://oa-dev.onwall.cn
VITE_PROXY_TARGET = https://oa.jcedu.org
# VITE_PROXY_TARGET = http://oa.onwall.cn
# PC端地址
......
/*
* @Date: 2023-08-24 09:42:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-10-31 11:04:23
* @LastEditTime: 2025-10-31 11:10:04
* @FilePath: /stdj_h5/src/api/index.js
* @Description: 文件描述
*/
......
......@@ -189,6 +189,9 @@ import VideoPlayer from '@/components/VideoPlayer.vue'
import { useTitle } from '@vueuse/core';
import { useRouter } from 'vue-router'
// 导入接口
import { homePageAPI } from '@/api/index.js'
const router = useRouter()
// 页面标题
......@@ -307,8 +310,13 @@ const selectStep = (index) => {
}
// 组件挂载后计算装饰线位置
onMounted(() => {
calculateLinePosition()
onMounted(async () => {
await calculateLinePosition();
// 调用接口获取首页数据
const { code, list } = await homePageAPI();
if (code) {
console.warn(list);
}
})
// 监听当前步骤变化,重新计算装饰线位置
......