邓洁: 隧道接口部分对接

This commit is contained in:
邓洁
2023-12-26 22:38:10 +08:00
parent 49baa25f8a
commit 48978b917c
6 changed files with 129 additions and 33 deletions

View File

@@ -114,7 +114,6 @@ onMounted(() => {
});
getUser()
getOtherInfo()
});
const getUser = () => {
getUserInfo().then(res => {
@@ -134,8 +133,8 @@ const getOtherInfo = () => {
}
});
};
const getScreenInfo = async (id) => {
await getLargeScreen(id).then((res) => {
const getScreenInfo = (id) => {
getLargeScreen(id).then((res) => {
if (res?.code === 1000) {
largeScreenData.value = res.data;
}
@@ -146,7 +145,7 @@ const getTunnel = (id) => {
getTunnelBySiteId(id).then((res) => {
if (res?.code === 1000) {
tunnelList.value = res.data
getScreenInfo(res.data[0].value)
// getScreenInfo(res.data[0].value)
}
});
}