style: 调整style样式

This commit is contained in:
zhanghao 2026-07-02 16:38:59 +08:00
parent 542f97a17e
commit b1f3e04ae2
3 changed files with 21 additions and 4 deletions

2
.env
View File

@ -1,5 +1,5 @@
VITE_AGV_DEVICE_ID = 'agv_src2200'
VITE_ARM_DEVICE_ID = 'huayan_arm'
// 机械臂IP 192.168.1.109:50052
# 机械臂IP 192.168.1.109:50052
VITE_SERVICE_PORT = 5175

View File

@ -293,7 +293,7 @@ const getJointState = async (robot) => {
const names = res.data.name
const positions = res.data.position
names.forEach((name, index) => {
urdfViewerRef.value.updateJoint(jointNamsMap[name] || name, positions[index])
urdfViewerRef.value.updateJoint(jointNamsMap[name] || name, positions[index].toFixed(3))
})
}, 500)
} else {
@ -498,6 +498,23 @@ onUnmounted(() => {
width: 50px;
text-align: right;
}
:deep(.el-input-group__prepend) {
background: #080b10;
border-right: 0px;
box-shadow: 0 0 0 1px #272727 inset;
}
:deep(.el-input-group__append) {
background: #080b10;
border-left: 0px;
box-shadow: 0 0 0 1px #272727 inset;
}
:deep(.el-input__wrapper) {
background-color: #0e0e0e;
box-shadow: 0 0 0 1px #272727 inset;
}
}
}

View File

@ -8,7 +8,7 @@ import path from 'path'
// https://vite.dev/config/
export default defineConfig(({ mode, command }) => {
const env = loadEnv(mode, process.cwd())
const { VITE_SERVICE_PORT } = env
const servicePort = env.VITE_SERVICE_PORT || 300
return {
resolve: {
alias: {
@ -35,7 +35,7 @@ export default defineConfig(({ mode, command }) => {
port: 5173,
proxy: {
'/api': {
target: `http://localhost:${VITE_SERVICE_PORT}`,
target: `http://localhost:${servicePort}`,
changeOrigin: true
}
}