style: 调整style样式
This commit is contained in:
parent
542f97a17e
commit
b1f3e04ae2
2
.env
2
.env
@ -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
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user