UI 修改
This commit is contained in:
parent
6cf4ecacf5
commit
ab007abd72
@ -41,7 +41,7 @@ const data = {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "偵測值",
|
||||
name: "復歸值",
|
||||
type: "line",
|
||||
data: [280, 300, 290, 295, 300, 290],
|
||||
smooth: true,
|
||||
@ -77,6 +77,7 @@ const defaultChartOption = ref({
|
||||
type: "value",
|
||||
},
|
||||
series: data.series,
|
||||
color: ['#5470c6', '#91cc75', '#fac858', '#52aea1'] ,
|
||||
});
|
||||
|
||||
let chartInstance = null; // 图表实例
|
||||
|
@ -25,7 +25,7 @@ const initChart = () => {
|
||||
focus: "adjacency",
|
||||
},
|
||||
data: [
|
||||
{ name: "總用電" },
|
||||
{ name: "總用電", itemStyle: { color: '#038a77' } },
|
||||
{ name: "照明" },
|
||||
{ name: "空調" },
|
||||
{ name: "設備A" },
|
||||
|
@ -3,7 +3,7 @@ import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: "/:catchAll(.*)",
|
||||
path: "/:catchAll(.*)?",
|
||||
name: "Home",
|
||||
component: () => import("../views/Home.vue"),
|
||||
children: [
|
||||
|
@ -6,7 +6,10 @@ import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
|
||||
|
||||
// https://vite.dev/config/
|
||||
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: {
|
||||
emptyOutDir: true,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user