UI 修改

This commit is contained in:
koko 2025-04-18 09:44:29 +08:00
parent 6cf4ecacf5
commit ab007abd72
4 changed files with 8 additions and 4 deletions

View File

@ -41,7 +41,7 @@ const data = {
}, },
}, },
{ {
name: "偵測值", name: "復歸值",
type: "line", type: "line",
data: [280, 300, 290, 295, 300, 290], data: [280, 300, 290, 295, 300, 290],
smooth: true, smooth: true,
@ -77,6 +77,7 @@ const defaultChartOption = ref({
type: "value", type: "value",
}, },
series: data.series, series: data.series,
color: ['#5470c6', '#91cc75', '#fac858', '#52aea1'] ,
}); });
let chartInstance = null; // let chartInstance = null; //

View File

@ -25,7 +25,7 @@ const initChart = () => {
focus: "adjacency", focus: "adjacency",
}, },
data: [ data: [
{ name: "總用電" }, { name: "總用電", itemStyle: { color: '#038a77' } },
{ name: "照明" }, { name: "照明" },
{ name: "空調" }, { name: "空調" },
{ name: "設備A" }, { name: "設備A" },

View File

@ -3,7 +3,7 @@ import type { RouteRecordRaw } from "vue-router";
const routes: Array<RouteRecordRaw> = [ const routes: Array<RouteRecordRaw> = [
{ {
path: "/:catchAll(.*)", path: "/:catchAll(.*)?",
name: "Home", name: "Home",
component: () => import("../views/Home.vue"), component: () => import("../views/Home.vue"),
children: [ children: [

View File

@ -6,7 +6,10 @@ import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
base: 'https://192.168.0.206:8500/file/ibms_ems_front/', base:
process.env.NODE_ENV === "production"
? "https://192.168.0.206:8500/file/ibms_ems_dist/"
: "/",
build: { build: {
emptyOutDir: true, emptyOutDir: true,
}, },