From a3fd83b160654d3252bd39e8f9e4c6b010c0ac82 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期六, 23 三月 2024 19:13:26 +0800
Subject: [PATCH] 新增主数据菜单

---
 .env.development                            |   10 ++++-
 src/views/basicdata/machine/workstation.vue |   36 ++++++++++++++++++
 vue.config.js                               |   13 ++++++
 src/api/model/system.js                     |    2 
 src/config/index.js                         |    2 
 5 files changed, 59 insertions(+), 4 deletions(-)

diff --git a/.env.development b/.env.development
index e589ffe..a56df6d 100644
--- a/.env.development
+++ b/.env.development
@@ -1,12 +1,18 @@
+###
+ # @Date: 2024-03-23 09:49:06
+ # @LastEditors: gaoshp
+ # @LastEditTime: 2024-03-23 18:12:00
+ # @FilePath: /cps-web/.env.development
+### 
 # 鏈湴鐜
 NODE_ENV = development
 
 # 鏍囬
-VUE_APP_TITLE = SCUI(DEV)
+VUE_APP_TITLE = CPS10.0鍗忓悓鏅洪��
 
 # 鎺ュ彛鍦板潃
 VUE_APP_API_BASEURL = https://mock.apifox.com/m1/4021385-0-default/api
-
+VUE_APP_API_MYBASEURL = https://mock.apifox.com/m1/4213246-0-default/api
 # 鏈湴绔彛
 VUE_APP_PORT = 2800
 
diff --git a/src/api/model/system.js b/src/api/model/system.js
index 6e935bb..b739d74 100644
--- a/src/api/model/system.js
+++ b/src/api/model/system.js
@@ -4,7 +4,7 @@
 export default {
 	menu: {
 		myMenus: {
-			url: `${config.API_URL}/system/menu/my/1.6.1`,
+			url: `${config.API_URL_MY}/system/menu/my/1.6.1`,
 			name: "鑾峰彇鎴戠殑鑿滃崟",
 			get: async function(){
 				return await http.get(this.url);
diff --git a/src/config/index.js b/src/config/index.js
index e8ee480..f43029a 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -13,7 +13,7 @@
 
 	//鎺ュ彛鍦板潃
 	API_URL: process.env.NODE_ENV === 'development' && process.env.VUE_APP_PROXY === 'true' ? "/api" : process.env.VUE_APP_API_BASEURL,
-
+	API_URL_MY: process.env.NODE_ENV === 'development' && process.env.VUE_APP_PROXY === 'true' ? "/myapi" : process.env.VUE_APP_API_MYBASEURL,
 	//璇锋眰瓒呮椂
 	TIMEOUT: 10000,
 
diff --git a/src/views/basicdata/machine/workstation.vue b/src/views/basicdata/machine/workstation.vue
new file mode 100644
index 0000000..c2f4f23
--- /dev/null
+++ b/src/views/basicdata/machine/workstation.vue
@@ -0,0 +1,36 @@
+<!--
+ * @Date: 2024-03-23 18:37:01
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2024-03-23 19:11:43
+ * @FilePath: /cps-web/src/views/basicdata/machine/workstation.vue
+-->
+<template>
+	<el-main>
+		ceshi
+	</el-main>
+</template>
+
+<script>
+
+	export default {
+		name: 'about',
+		data() {
+			return {
+			}
+		},
+		mounted() {
+
+		},
+		methods: {
+
+		}
+	}
+</script>
+
+<style scoped>
+	.aboutTop {border:0;background: linear-gradient(to right, #8E54E9, #4776E6);color: #fff;}
+	.aboutTop-info {text-align: center}
+	.aboutTop-info img {width: 100px;}
+	.aboutTop-info h2 {font-size: 26px;margin-top: 15px;}
+	.aboutTop-info p {font-size: 16px;margin-top: 10px;}
+</style>
diff --git a/vue.config.js b/vue.config.js
index 1ef0d9a..095362b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,3 +1,9 @@
+/*
+ * @Date: 2024-03-23 09:49:06
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2024-03-23 18:21:49
+ * @FilePath: /cps-web/vue.config.js
+ */
 const { defineConfig } = require('@vue/cli-service')
 
 module.exports = defineConfig({
@@ -21,6 +27,13 @@
 				pathRewrite: {
 					'^/api': '/'
 				}
+			},
+			'/myapi': {
+				target: process.env.VUE_APP_API_MYBASEURL,
+				ws: true,
+				pathRewrite: {
+					'^/myapi': '/'
+				}
 			}
 		}
 	},

--
Gitblit v1.9.3