diff --git a/src/router/index.ts b/src/router/index.ts
index b90fe82..9c10548 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -5,6 +5,8 @@ import Index from "@/views/Index.vue";
import EnvironmentView from "../views/EnvironmentView.vue";
import SprayView from "../views/SprayView.vue";
import PrintView from "../views/PrintView.vue";
+import Debug from '../views/debug/index.vue'
+import SpurtPrint from '../views/spurtPrint/index.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -33,7 +35,15 @@ const router = createRouter({
path: "/print",
name: "print",
component: PrintView,
- },
+ },{
+ path: "/debug",
+ name: "debug",
+ component: Debug,
+ },{
+ path: "/spurtPrint",
+ name: "spurtPrint",
+ component: SpurtPrint
+ }
],
},
{
diff --git a/src/services/socket.ts b/src/services/socket.ts
index cfcd286..1826ffc 100644
--- a/src/services/socket.ts
+++ b/src/services/socket.ts
@@ -106,3 +106,8 @@ export const createWebSocket = (url: string): WebSocketClient => {
return client;
}
};
+
+
+export const sharedWsUrl = `ws://${import.meta.env.VITE_API_HOST}:${import.meta.env.VITE_API_PORT}${
+ import.meta.env.VITE_WS_PATH
+}`;
\ No newline at end of file
diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue
new file mode 100644
index 0000000..d11bfb7
--- /dev/null
+++ b/src/views/debug/index.vue
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+ 急停
+
+
+
+
切换三通
+
管路切换到基质
+
管路切换到清洗
+
+
+
+
气压阀
+
打开清洗阀
+
打开喷嘴阀
+
打开除湿阀
+
+
+
+ 关闭电压控制器
+
+
+
+
+
+
+
+
+
diff --git a/src/views/debug/type.ts b/src/views/debug/type.ts
new file mode 100644
index 0000000..64eefa8
--- /dev/null
+++ b/src/views/debug/type.ts
@@ -0,0 +1,5 @@
+export type MachineryType = {
+ x: string | number
+ y: string | number
+ z: string | number
+}
\ No newline at end of file
diff --git a/src/views/spurtPrint/index.vue b/src/views/spurtPrint/index.vue
new file mode 100644
index 0000000..bd0ba9c
--- /dev/null
+++ b/src/views/spurtPrint/index.vue
@@ -0,0 +1,25 @@
+
+
+
+ 新增工艺
+ 编辑
+ 删除
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vite.config.ts b/vite.config.ts
index f97ce0b..8331f24 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -16,5 +16,13 @@ export default defineConfig({
server: {
host: "0.0.0.0",
port: 5175,
+ proxy: {
+ "/api": {
+ target: "http://192.168.1.125:8080",
+ // target: "http://localhost:8080",
+ changeOrigin: true,
+ // rewrite: (path) => path.replace(/^\/api/, ''),
+ },
+ },
},
});