feat: bug修改

develop
JINGYJ 4 weeks ago
parent f5332aaac7
commit 0d1266fdc9

@ -4,4 +4,4 @@ VITE_PORT = 8848
# 是否隐藏首页 隐藏 true 不隐藏 false 勿删除VITE_HIDE_HOME只需在.env文件配置
VITE_HIDE_HOME = false
# 开发环境后端地址
VITE_APP_BASE_URL = 'http://192.168.10.70:8080'
VITE_APP_BASE_URL = 'http://192.168.10.70:8765'

@ -7,4 +7,4 @@ VITE_PUBLIC_PATH = ./
# 开发环境路由历史模式Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数"
VITE_ROUTER_HISTORY = "hash"
# 开发环境后端地址
VITE_APP_BASE_URL = 'http://192.168.10.70:8080'
VITE_APP_BASE_URL = 'http://192.168.10.70:8765'

@ -12,4 +12,4 @@ VITE_CDN = false
# 压缩时删除原始文件的配置gzip-clear、brotli-clear、both-clear同时开启 gzip 与 brotli 压缩、none不开启压缩默认
VITE_COMPRESSION = "none"
# 生产环境后端地址
VITE_APP_BASE_URL = 'http://192.168.10.70:8080'
VITE_APP_BASE_URL = 'http://192.168.10.70:8765'

@ -59,7 +59,7 @@ export default defineComponent({
>
<div class="box" v-show={vFirst?.expended}>
{Array.isArray(vFirst.children) &&
vFirst.children.length && (
vFirst.children.length != 0 && (
<ul class="child_info_box" key="123">
{vFirst.children.map((item, index) => {
return (

@ -24,6 +24,14 @@ const props = defineProps({
});
const deviceStatusData = ref({ ...props.deviceStatus });
// props
watch(
() => props.deviceStatus,
newVal => {
deviceStatusData.value = { ...newVal }; //
},
{ deep: true } //
);
const deviceStatusOptions = ref<Record<string, any>[]>([
{

@ -131,6 +131,7 @@ async function getListDevice() {
deviceStatus.value = data.device_status;
deviceWarning.value = data.device_warnings;
computeUsed.value = data.compute_used;
console.log("deviceStatus 赋值后:", deviceStatus.value); //
console.log(data, "resData");
console.log(deviceWarning.value, "computeUsed");
} catch (e) {

@ -57,7 +57,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
// 本地跨域代理 https://cn.vitejs.dev/config/server-options.html#server-proxy
proxy: {
"/api/": {
target: "http://192.168.10.70:8080/",
target: "http://192.168.10.70:8765/",
changeOrigin: true,
secure: false
// rewrite: path => path.replace(/^\/api/, "")

Loading…
Cancel
Save